An open API service indexing awesome lists of open source software.

https://github.com/charmander/npm-pack-check

`npm pack` with missing file checks
https://github.com/charmander/npm-pack-check

nodejs package-json

Last synced: 2 months ago
JSON representation

`npm pack` with missing file checks

Awesome Lists containing this project

README

          

Like `npm pack`, but checks that all package.json `files` exist and tries to find `require`ments missing from `files`.

This shouldn’t be run on untrusted packages. `prepack` and `postpack` scripts can be avoided with `npm pack --ignore-scripts`, but it’s possible there are other ways to convince `npm pack` to do something unsafe.

```sh
npm() {
if [[ "$#" = 1 && pack = "$1" ]]; then
npm-pack-check
else
command npm "$@"
fi
}
```