@cjser/is-archive
v3.0.0-cjser.2
Published
Check if a file path is an archive file
Maintainers
Readme
is-archive
Check if a file path is an archive file
Install
npm install is-archiveUsage
import isArchive from 'is-archive';
isArchive('source/unicorn.zip');
//=> true
isArchive('source/unicorn.txt');
//=> falseRelated
- archive-extensions - List of archive file extensions
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/is-archive
