Determines if a buffer is comprised of text or binary
- Install:
npm install --save istextorbinary
- Module:
require('istextorbinary')
- Install:
npm install --save istextorbinary
- Module:
require('istextorbinary')
- CDN URL:
//wzrd.in/bundle/[email protected]
- Install:
ender add istextorbinary
- Module:
require('istextorbinary')
This package is published with the following editions:
istextorbinary
aliasesistextorbinary/index.js
which uses Editions to automatically select the correct edition for the consumers environmentistextorbinary/source/index.js
is esnext source code with require for modulesistextorbinary/edition-browsers/index.js
is esnext compiled for browsers with require for modulesistextorbinary/edition-node-0.12/index.js
is esnext compiled for node.js >=0.12 with require for modules
// 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:
- Copyright © 2012+ Bevry Pty Ltd
- Copyright © 2011 Benjamin Lupton
and licensed under: