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

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

Current Tags

  • 2.0.0                                ...           latest (6 years ago)

3 Versions

  • 2.0.0                                ...           6 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)

Copyright 2013 - present © cnpmjs.org | Home |