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