node package manager

is-rar

is-rar Build Status

Check if a Buffer/Uint8Array is a RAR file

Install

$ npm install --save is-rar

Usage

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

License

MIT License © Kevin Mårtensson