|
|
8 лет назад | |
|---|---|---|
| .. | ||
| out | 8 лет назад | |
| .npmignore | 8 лет назад | |
| LICENSE.md | 8 лет назад | |
| README.md | 8 лет назад | |
| package.json | 8 лет назад | |
Determines if a buffer is comprised of text or binary
require('istextorbinary')npm install --save istextorbinary// Sync
var result = require('istextorbinary').isTextSync(filename, buffer);
// Async
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
// isBinary, and isBinarySync methods also provided
Discover the change 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:
Licensed under the incredibly permissive MIT license
Copyright © 2012+ Bevry Pty Ltd us@bevry.me (http://bevry.me)
Copyright © 2011 Benjamin Lupton b@lupton.cc (http://balupton.com)