@robotical/martyblocks
Version:
MartyBlocks based on Scratch for Marty the Robot by Robotical
35 lines (19 loc) • 682 B
Markdown
> Check if a file path is a text file
```
$ npm install is-text-path
```
```js
const isTextPath = require('is-text-path');
isTextPath('source/unicorn.txt');
//=> true
isTextPath('source/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 file path is a binary file
MIT © [Sindre Sorhus](https://sindresorhus.com)