# lambda-webpack-zip

> lambda-webpack-zip

Latest version **1.0.0** (published 2017-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install lambda-webpack-zip
pnpm add lambda-webpack-zip
yarn add lambda-webpack-zip
bun add lambda-webpack-zip
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-07-31 |
| First published | 2017-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | wwwy3y3 |

## Links

- npm: https://www.npmjs.com/package/lambda-webpack-zip
- npm.io page: https://npm.io/package/lambda-webpack-zip

## Dependencies (5)

- [tmp](https://npm.io/package/tmp.md) ^0.0.31
- [pump](https://npm.io/package/pump.md) ^1.0.2
- [fstream](https://npm.io/package/fstream.md) ^1.0.11
- [webpack](https://npm.io/package/webpack.md) ^3.4.1
- [archiver](https://npm.io/package/archiver.md) ^2.0.0

## Recent versions

- 1.0.0 (latest) — 2017-07-31
- 0.0.1 — 2017-07-31

## README

## lambda-webpack-zip
[![npm Version](https://img.shields.io/npm/v/lambda-webpack-zip.svg?style=flat-square)](https://www.npmjs.org/package/lambda-webpack-zip)
[![Build Status](https://travis-ci.org/Canner/lambda-webpack-zip.svg?branch=master)](https://travis-ci.org/Canner/lambda-webpack-zip)

Build for aws-lambda, webpack your entry, then zip it

## Install
``` sh
npm install lambda-webpack-zip
yarn add lambda-webpack-zip
```

## Features
* customized webpack configs
* create tmp file for webpack built code and zip file, ensure them to be deleted after process exit
* Typescript support

### Usage
``` js
const {pack} = require("lambda-webpack-zip");
pack({
  // webpack configs
  entry: "/source/code/path",
  // Specify the output file containing our bundled code
  output: {
    filename: "index.js"
  }
})
.then(zipFilePath => {
  // upload zipFilePath
});
```

## Powered By Canner
[Canner](https://www.canner.io/)

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