node package manager

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