peach a19a732be8 commit message | 2 anni fa | |
---|---|---|
.. | ||
index.js | 2 anni fa | |
license | 2 anni fa | |
package.json | 2 anni fa | |
readme.md | 2 anni fa |
Check if a filepath is a text file
$ npm install --save is-text-path
var isTextPath = require('is-text-path');
isTextPath('src/unicorn.txt');
//=> true
isTextPath('src/unicorn.png');
//=> false
text-extensions
- List of text file extensionsis-binary-path
- Check if a filepath is a binary fileMIT © Sindre Sorhus