npm-pack-all-zip

A tool to help you pack your NPM package to a zip file that includes all of the dependencies of the package and ready to deploy to AWS-lambda or Azure Web Apps by default.

Usage no npm install needed!

<script type="module">
  import npmPackAllZip from 'https://cdn.skypack.dev/npm-pack-all-zip';
</script>

README

A tool to help you pack your NPM package to a zip file that includes all of the dependencies of the package and ready to deploy to AWS-lambda/Azure Web Apps by default.

Usage

Script

const pack = require('npm-pack-all-zip');
const devDeps = false; // not includes devDependencies
const name = 'name-from-package-json';
const dist = './'; // the path relative to the the project

pack(name, devDeps, dist).then(function () {
....  
});

Cli

npm-pack-all-zip --name=your-zip-file-name --dist=xxx/xxx --dev-deps

Note: All args are optional. Please check script secion for detail.