Gathering detailed insights and metrics for dir-archiver
Gathering detailed insights and metrics for dir-archiver
Gathering detailed insights and metrics for dir-archiver
Gathering detailed insights and metrics for dir-archiver
Compress a whole directory (including subdirectories) into a zip file, with options to exclude specific files, or directories.
npm install dir-archiver
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
14 Stars
37 Commits
3 Forks
1 Watchers
2 Branches
2 Contributors
Updated on Dec 12, 2023
Latest Version
2.1.0
Package Id
dir-archiver@2.1.0
Unpacked Size
9.84 kB
Size
3.31 kB
File Count
5
NPM Version
8.11.0
Node Version
18.3.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
2
Compress a whole directory (including subdirectories) into a zip file, with options to exclude specific files, or directories.
1$ npm install dir-archiver
1// Require modules. 2var DirArchiver = require('dir-archiver'); 3 4// Create an array with the files and directories to exclude. 5const excludes = ['directory_name', 'file.extension']; 6 7/** 8 * Create a dir-archiver object. 9 * @param {string} directoryPath - The path of the folder to archive. 10 * @param {string} zipPath - The path of the zip file to create. 11 * @param {Boolean} includeBaseDirectory - Includes a base directory at the root of the archive. 12 * For example, if the root folder of your project is named "your-project", setting 13 * includeBaseDirectory to true will create an archive that includes this base directory. 14 * If this option is set to false the archive created will unzip its content to 15 * the current directory. 16 * @param {array} excludes - A list with the names of the files and folders to exclude. 17*/ 18var archive = new DirArchiver('path/to/directory', 'path/to/desination/zipfile.zip', true, excludes); 19 20// Create the zip file. 21archive.createZip();
1Usage: dir-archiver --src <path-to-directory> --dest <path-to-file>.zip --includebasedir true|false --exclude folder-name file-name.extention 2 3Options: 4 --src The path of the folder to archive. [string][required] 5 --dest The path of the zip file to create. [string][required] 6 --includebasedir Includes a base directory at the root of the archive. 7 For example, if the root folder of your project is named 8 "your-project", setting this option to true will create 9 an archive that includes this base directory. 10 If this option is set to false the archive created will 11 unzip its content to the current directory. [bool] 12 --exclude A list with the names of the files and folders to exclude. [array]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 1/28 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More