node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

is-rar

is-rar Build Status

Check if a Buffer/Uint8Array is a RAR file

Install

$ npm install is-rar

Usage

const fs = require('fs);
const isRar = require('is-rar');
 
isRar(fs.readFileSync('foo.rar'));
//=> true

License

MIT © Kevin Mårtensson