
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
npm goggles for your package: see what files npm sees – tiny cli utility to list the files npm will include in its published tarball.
Tired of running npm pack just so you can tar -tf <your-package>.tgz to see the files included in the tarball? No longer!
Install locally as a devDependency and run through an npm script or via npx:
$ npm install -D packfiles
$ npx packfiles
Simplest usage is via npx:
$ npx packfiles
But beware that you likely need to run npm run prepare before packfiles such that you get an accurate view of the files that will exist during an npm publish flow.
$ packfiles
package.json
.travis.yml
index.js
LICENSE.txt
README.md
bin/teenytest
lib/cli/argv-options.js
lib/cli/index.js
lib/cli/parse-package-options.js
lib/configure/criteria.js
lib/configure/defaults.js
lib/configure/index.js
lib/plan/index.js
lib/plugins/callbackify.js
lib/plugins/store.js
lib/plugins/user-function-store.js
lib/plugins/wrap.js
lib/prepare/helper.js
lib/prepare/index.js
lib/prepare/modules/compact.js
lib/prepare/modules/filter.js
lib/prepare/modules/index.js
lib/prepare/modules/load.js
lib/run/double-resolve.js
lib/run/index.js
lib/run/register-built-in-plugins.js
lib/run/register-user-plugins.js
lib/run/results-store.js
lib/run/run-custom-configurator.js
lib/store.js
plugins/results.js
plugins/tap13/builder.js
plugins/tap13/count-tests.js
plugins/tap13/index.js
plugins/timeout.js
plugins/uncaught-exception.js
Npm uses npm-packlist to determine the files that will be included in the package tarball.
This module takes into account all of npm's include/exclude rules (.gitignore, .npmignore, pkg.files, etc).
packfiles is simply a cli wrapper for npm-packlist that prints the list of files to STDOUT.
packfiles relies on any build or compilation step already running.
So if your module is built via a prepare script (which it probably should), you'll need to run npm run prepare before running packfiles.
See also npm scripts docs for information regarding correct usage of prepare, publish, pack and all relevant pre/post variants (and prepublishOnly)
FAQs
npm goggles: see what files npm sees
The npm package packfiles receives a total of 8 weekly downloads. As such, packfiles popularity was classified as not popular.
We found that packfiles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.