is-rar

Check if a Buffer/Uint8Array is a RAR file

is-rar

Check if a Buffer/Uint8Array is a RAR file

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

MIT License © Kevin Mårtensson