is-text-path
Check if a file path is a text file
Last updated 2 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-text-path 
SYNC missed versions from official npm registry.

is-text-path

Check if a file path is a text file

Install

npm install is-text-path

Usage

import isTextPath from 'is-text-path';

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

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

Related

Current Tags

  • 3.0.0                                ...           latest (2 years ago)

4 Versions

  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 84
This Month 118
Last Day 15
Last Week 54
Last Month 298
Dependencies (1)
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |