Skip to content

Analyse a raw string rather than files/directories? #9

Answered by Nixinova
lowlighter asked this question in Questions
Discussion options

You must be logged in to vote

@lowlighter does the addition in 205c4ef cover your use case? (and does this look like the best way of doing this?) If so i'll release it as v2.3

//example//
const linguist = require('linguist-js')
linguist('filename', {fileContent: 'whatever'})
linguist(['file1', 'file2'], {fileContent: ['foo','bar']})

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Nixinova
Comment options

@lowlighter
Comment options

Comment options

You must be logged in to vote
1 reply
@lowlighter
Comment options

Answer selected by lowlighter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested node usage Related to Node usage implemented This feature has been added
2 participants