is-rtf
Version:
Check if a Buffer/Uint8Array is a RTF file
23 lines (15 loc) • 460 B
Markdown
> Check if a Buffer/Uint8Array is a RTF file
```sh
$ npm install --save is-rtf
```
```js
var isRtf = require('is-rtf');
var read = require('fs').readFileSync;
isRtf(read('test.rtf'));
// => true
```
[](http://en.wikipedia.org/wiki/MIT_License) © [Valentin Dubois](https://github.com/veacks)