istextorbinary-albinodrought
v2.1.1
Published
Determines if a buffer is comprised of text or binary
Downloads
20
Maintainers
Readme
Determines if a buffer is comprised of text or binary
NPM
Browserify
Ender
Usage
// Synchronous API
var result = require('istextorbinary').isTextSync(filename, buffer)
// Asynchronous API
require('istextorbinary').isText(filename, buffer, function(err, result){
// ...
})
// You can supply text or buffer, or both text and buffer, the more provided, the more accurate the result
Discover the release history by heading on over to the HISTORY.md file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
Unless stated otherwise all works are:
and licensed under: