All Projects → sindresorhus → is-text-path

sindresorhus / is-text-path

Licence: MIT license
Check if a file path is a text file

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

is-text-path

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


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].