peach a19a732be8 commit message | il y a 2 ans | |
---|---|---|
.. | ||
index.js | il y a 2 ans | |
license | il y a 2 ans | |
package.json | il y a 2 ans | |
readme.md | il y a 2 ans |
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