$ gnpm install is-text-path
Check if a file path is a text file
$ npm install is-text-path
const isTextPath = require('is-text-path');
isTextPath('source/unicorn.txt');
//=> true
isTextPath('source/unicorn.png');
//=> false
text-extensions
- List of text file extensionsis-binary-path
- Check if a file path is a binary fileMIT © Sindre Sorhus
Copyright 2013 - present © cnpmjs.org | Home |