# pack-deps

> Pack dependencies

Latest version **0.1.5** (published 2018-12-06) · MIT license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2018-12-06 |
| First published | 2017-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kengo Nakatsuka |
| Maintainers | nak2k |

## Links

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

## Dependencies (7)

- [debug](https://npm.io/package/debug.md) ^4.1.0
- [jszip](https://npm.io/package/jszip.md) ^3.1.5
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [jszip-glob](https://npm.io/package/jszip-glob.md) 0.0.1
- [current-npm](https://npm.io/package/current-npm.md) 0.0.2
- [run-waterfall](https://npm.io/package/run-waterfall.md) ^1.1.6
- [json-thumbprint](https://npm.io/package/json-thumbprint.md) 0.0.1

## Recent versions

- 0.1.5 (latest) — 2018-12-06
- 0.1.4 — 2018-12-04
- 0.1.3 — 2018-08-21
- 0.1.2 — 2018-08-16
- 0.1.1 — 2018-08-16
- 0.1.0 — 2018-07-15
- 0.0.9 — 2018-06-29
- 0.0.8 — 2018-05-25
- 0.0.7 — 2018-05-13
- 0.0.6 — 2018-03-15
- 0.0.5 — 2018-03-07
- 0.0.4 — 2017-11-14
- 0.0.3 — 2017-11-14
- 0.0.2 — 2017-11-12
- 0.0.1 — 2017-11-08

## README

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

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