0.1.6 • Published 5 years ago

npm-lambda-pack v0.1.6

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

npm-lambda-pack

npm pack for Lambda.

Installation

npm i npm-lambda-pack

Usage

const { pack } = require('npm-lambda-pack');

pack({
  pkgJson: require('path/to/lambda/package.json'),
  pkgDir: 'path/to/lambda',
}), (err, esult) => {
  // ...
});

pack(options, callback)

  • options.pkgJson
    • package.json that dependencies are packed.
  • options.pkgDir
    • A path that the package.json is located.
  • options.cacheBaseDir
    • A path of a base directory that cache a packed package on.
  • options.exclude
    • A glob pattern of files that are not add into the zip file.
  • callback(err, result)
    • A function that is callback when packing is completed.
    • err - An Error object when an error is occured.
    • result.zip - An instance of the JSZip.

Related

License

MIT

0.1.6

5 years ago

0.1.5

6 years ago

0.1.4

6 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.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago