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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i is-xz

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • kevva