Need private packages and team management tools?Check out npm Teams »

is-text-path

2.0.0 • Public • Published

is-text-path Build Status

Check if a file path is a text file

Install

$ npm install is-text-path

Usage

const isTextPath = require('is-text-path');
 
isTextPath('source/unicorn.txt');
//=> true
 
isTextPath('source/unicorn.png');
//=> false

Related

License

MIT © Sindre Sorhus

Install

npm i is-text-path

DownloadsWeekly Downloads

1,521,760

Version

2.0.0

License

MIT

Unpacked Size

2.95 kB

Total Files

5

Last publish

Collaborators

  • avatar