is-plain-path
v1.0.0
Published
Check if a file path is a text file
Downloads
2
Maintainers
Readme
is-plain-path
Check if a file path is a text file
Install
$ npm install is-text-path
Usage
const isTextPath = require('is-plain-path');
isTextPath('source/unicorn.txt');
//=> true
isTextPath('source/unicorn.png');
//=> false