Unknown f15840a330 Android Java files Added. 8 years ago
..
out f15840a330 Android Java files Added. 8 years ago
.npmignore f15840a330 Android Java files Added. 8 years ago
LICENSE.md f15840a330 Android Java files Added. 8 years ago
README.md f15840a330 Android Java files Added. 8 years ago
package.json f15840a330 Android Java files Added. 8 years ago

README.md

Is Text or Binary?

Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
Gratipay donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

Determines if a buffer is comprised of text or binary

Install

NPM

  • Use: require('istextorbinary')
  • Install: npm install --save istextorbinary

Usage

// 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

History

Discover the change history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Gratipay donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

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)