is-text-path
v3.0.0
Published
Check if a file path is a text file
Downloads
25,447,877
Maintainers
Readme
is-text-path
Check if a file path is a text file
Install
npm install is-text-path
Usage
import isTextPath from '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