npm install --save istextorbinary
require('istextorbinary')
npm install --save istextorbinary
require('istextorbinary')
//wzrd.in/bundle/istextorbinary@2.1.0
ender add istextorbinary
require('istextorbinary')
This package is published with the following editions:
istextorbinary
aliases istextorbinary/index.js
which uses Editions to automatically select the correct edition for the consumers environmentistextorbinary/source/index.js
is Source + ESNext + Requireistextorbinary/es2015/index.js
is Babel Compiled + ES2015 + RequireOlder environments may need Babel's Polyfill or something similar.
## Usage ``` javascript // 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 ``` [API Documentation.](http://rawgit.com/bevry/istextorbinary/master/docs/index.html)HISTORY.md
file.
CONTRIBUTING.md
file.
CONTRIBUTING.md
file.