charlike
Version:
Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options
35 lines (19 loc) • 678 B
Markdown
> Check if a filepath is a text file
```
$ npm install --save is-text-path
```
```js
var isTextPath = require('is-text-path');
isTextPath('src/unicorn.txt');
//=> true
isTextPath('src/unicorn.png');
//=> false
```
- [`text-extensions`](https://github.com/sindresorhus/text-extensions) - List of text file extensions
- [`is-binary-path`](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file
MIT © [Sindre Sorhus](http://sindresorhus.com)