readme.md 678 B

is-text-path Build Status

Check if a filepath is a text file

Install

$ npm install --save is-text-path

Usage

var isTextPath = require('is-text-path');

isTextPath('src/unicorn.txt');
//=> true

isTextPath('src/unicorn.png');
//=> false

Related

License

MIT © Sindre Sorhus