1.0.0 • Published 5 years ago
npm-packist v1.0.0
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.
1.0.0
5 years ago