is-text-path
v3.0.0
Published
Check if a file path is a text file
Downloads
28,118,209
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