npm.io
3.0.0 • Published 2 years ago

is-archive

Licence
MIT
Version
3.0.0
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
16

is-archive

Check if a file path is an archive file

Install

npm install is-archive

Usage

import isArchive from 'is-archive';

isArchive('source/unicorn.zip');
//=> true

isArchive('source/unicorn.txt');
//=> false

Keywords