Socket
Socket
Sign inDemoInstall

pkgfiles

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkgfiles


Version published
Weekly downloads
447
decreased by-5.89%
Maintainers
1
Install size
369 kB
Created
Weekly downloads
 

Readme

Source

pkgfiles

List all files which would be published in a package.

Useful for double-checking you're not publishing anything unwanted prior to an npm publish.

Note some files may not yet exist (e.g. .npmignore).

Installation

npm install pkgfiles

Example

var pkgfiles = require('pkgfiles')

pkgfiles('./src', function(err, files, packages) {
  // files: Array of absolute paths to files and dirs that would be included
  // packages: Array of package.jsons that would be included
})

CLI

> pkgfiles

package.json
.npmignore
index.js
Readme.md
bin/pkgfiles.js
test/index.js
test/pkg/package.json
test/pkg/index.js
test/pkg/lib/index.js

Total 9 files
>

Description

This is a wrapper around whatever version of fstream-npm is installed in the global npm. It has an async callback interface (instead of a stream), and keeps the original path (instead of nesting paths in 'package').

License

MIT

Keywords

FAQs

Last updated on 28 Sep 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc