|
|
||
|---|---|---|
| .. | ||
| index.js | ||
| license | ||
| package.json | ||
| readme.md | ||
readme.md
is-text-path 
Check if a filepath is a text file
Install
$ npm install --save is-text-path
Usage
var isTextPath = require('is-text-path');
isTextPath('src/unicorn.txt');
//=> true
isTextPath('src/unicorn.png');
//=> false
Related
text-extensions- List of text file extensionsis-binary-path- Check if a filepath is a binary file
License
MIT © Sindre Sorhus