is-text-path
TypeScript icon, indicating that this package has built-in type declarations

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    1,717,370
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    1,717,370
  • 1.0.1
    3,633,228
  • 1.0.0
    0

Package Sidebar

Install

npm i is-text-path

Weekly Downloads

5,350,598

Version

2.0.0

License

MIT

Unpacked Size

2.95 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus