# npm-lambda-pack

> Npm pack for Lambda

Latest version **0.1.6** (published 2019-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-lambda-pack
pnpm add npm-lambda-pack
yarn add npm-lambda-pack
bun add npm-lambda-pack
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2019-05-14 |
| First published | 2018-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kengo Nakatsuka |
| Maintainers | nak2k |
| Keywords | aws, awslambda, lambda |

## Links

- npm: https://www.npmjs.com/package/npm-lambda-pack
- Repository: https://github.com/nak2k/node-npm-lambda-pack
- Issues: https://github.com/nak2k/node-npm-lambda-pack/issues
- npm.io page: https://npm.io/package/npm-lambda-pack

## Dependencies (3)

- [pack-deps](https://npm.io/package/pack-deps.md) ^0.1.3
- [npm-packlist](https://npm.io/package/npm-packlist.md) ^1.1.11
- [run-parallel](https://npm.io/package/run-parallel.md) ^1.1.9

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2019-05-14
- 0.1.5 — 2018-08-21
- 0.1.4 — 2018-08-16
- 0.1.3 — 2018-08-16
- 0.1.2 — 2018-08-16
- 0.1.1 — 2018-07-25
- 0.1.0 — 2018-07-15
- 0.0.4 — 2018-07-01
- 0.0.3 — 2018-06-30
- 0.0.2 — 2018-06-30
- 0.0.1 — 2018-06-28

## README

# npm-lambda-pack

`npm pack` for Lambda.

## Installation

```
npm i npm-lambda-pack
```

## Usage

``` javascript
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](http://stuk.github.io/jszip/documentation/api_jszip/constructor.html).

## Related

- [npm-lambda](https://github.com/nak2k/node-npm-lambda)

## License

MIT

---
_Source: https://npm.io/package/npm-lambda-pack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
