Bug#1010625: ITP: node-istextorbinary -- Determine if a filename and/or buffer is text or binary
Package: wnpp
Severity: wishlist
Owner: Pirate Praveen <praveen@debian.org>
X-Debbugs-CC: debian-devel@lists.debian.org
* Package name : node-istextorbinary
Version : 6.0.0
Upstream Author : 2012+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me)
* URL : https://github.com/bevry/istextorbinary
* License : Expat
Programming Lang: JavaScript
Description : Determine if a filename and/or buffer is text or binary
This library provides smarter detection than the other solutions.
.
Determination works like so:
1. Extension Check: If filename is available, check if any of its
extensions
(from right to left) are an text extension or a binary extension,
this is
near instant.
2. Contents Check: If no filename was provided, or the extension
check was
indeterminate, then check the contents of the buffer.
.
Node.js is an event-based server-side JavaScript engine.
Reply to: