Pack dependencies
npm install pack-depsPack dependencies.
```
npm i pack-deps
Generate a zip file that contains dependencies from a specified package.json.
- options.pkgJsonpackage.json
- that dependencies are packed.options.pkgDir
- package.json
- A path that the is located.options.production
- options.cacheBaseDir
- A boolean value whether to pack dependencies in production mode.
- options.baseDirInZip
- A path of a base directory that cache a packed package on.
- options.noCache
- A path of a base directory in a zip file.
- false
- If this option is , a zip file is not generated.callback(err, { zip, cacheFile, cacheDir })
- err
- A function that is callback when packing is completed.
- - An Error object when an error is occured.zip
- - An instance of the JSZip.cacheFile
- - A path of the cached zip file.cacheDir
- - A path of a directory that cache the packed package on.
Calculate a thumbprint based on dependeices from a specified package.json.
- options.pkgJsonoptions.pkgDir
-
Return value:
- resolvedPkgJsonthumbprint`
-
MIT