is-xz

2.0.0 • Public • Published

is-xz Build Status

Check if a Buffer/Uint8Array is a XZ file

Install

$ npm install is-xz

Usage

const fs = require('fs');
const isXz = require('is-xz');
 
isXz(fs.readFileSync('foo.tar.xz'));
//=> true

License

MIT © Kevin Mårtensson

Dependents (1)

Package Sidebar

Install

npm i is-xz

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • kevva