HEX
Server: LiteSpeed
System: Linux CentOS-79-64-minimal 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: vishn3436 (5293)
PHP: 8.0.15
Disabled: NONE
Upload Files
File: //data/wpp-docker/node_modules/is-text-path/readme.md
# is-text-path [![Build Status](https://travis-ci.org/sindresorhus/is-text-path.svg?branch=master)](https://travis-ci.org/sindresorhus/is-text-path)

> Check if a filepath is a text file


## Install

```
$ npm install --save is-text-path
```


## Usage

```js
var isTextPath = require('is-text-path');

isTextPath('src/unicorn.txt');
//=> true

isTextPath('src/unicorn.png');
//=> false
```


## Related

- [`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


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)