npm-packist
v1.0.0
Published
Pack npm modules.
Downloads
5
Maintainers
Readme
NPM Packist
Pack npm modules.
Install
npm install npm-packist
Usage
const npmPackist = require("npm-packist");
(async () => {
await npmPackist(".")
//=> 'C:\\Users\\richi\\Documents\\GitHub\\npm-packist\\the-module-v0.0.0.tgz'
})()
API
npmPackist(cwd?, options?)
cwd
Type: string
The directory to pack the modules from.
options
Type: object
fileName
Type: string
Default: (Generated from package name and version)
The filename to save the tgz file as.