Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

is-text-path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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