Socket
Book a DemoInstallSign in
Socket

is-xz

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-xz

Check if a Buffer/Uint8Array is a XZ file

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
8
700%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

archive

FAQs

Package last updated on 13 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts