JSPM

is-text-path

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7888193
  • Score
    100M100P100Q215400F
  • License MIT

Check if a file path is a text file

Package Exports

  • is-text-path

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-text-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

License

MIT © Sindre Sorhus