0.1.5 • Published 5 years ago

pack-deps v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

pack-deps

Pack dependencies.

Installation

npm i pack-deps

API

packDeps(options, callback)

Generate a zip file that contains dependencies from a specified package.json.

  • options.pkgJson
    • package.json that dependencies are packed.
  • options.pkgDir
    • A path that the package.json is located.
  • options.production
    • A boolean value whether to pack dependencies in production mode.
  • options.cacheBaseDir
    • A path of a base directory that cache a packed package on.
  • options.baseDirInZip
    • A path of a base directory in a zip file.
  • options.noCache
    • If this option is false, a zip file is not generated.
  • callback(err, { zip, cacheFile, cacheDir })
    • A function that is callback when packing is completed.
    • err - 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.

depsThumbprint(options)

Calculate a thumbprint based on dependeices from a specified package.json.

  • options.pkgJson
  • options.pkgDir

Return value:

  • resolvedPkgJson
  • thumbprint

License

MIT

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago