Socket
Socket
Sign inDemoInstall

npm-packlist

Package Overview
Dependencies
Maintainers
6
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-packlist - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

lib/index.js

9

bin/index.js

@@ -9,6 +9,7 @@ #!/usr/bin/env node

process.exit(0)
} else if (arg === '-s' || arg === '--sort')
} else if (arg === '-s' || arg === '--sort') {
doSort = true
else
} else {
dirs.push(arg)
}
})

@@ -19,5 +20,5 @@

const packlist = require('../')
if (!dirs.length)
if (!dirs.length) {
console.log(sort(packlist.sync({ path: process.cwd() })).join('\n'))
else {
} else {
dirs.forEach(path => {

@@ -24,0 +25,0 @@ console.log(`> ${path}`)

{
"name": "npm-packlist",
"version": "3.0.0",
"version": "4.0.0",
"description": "Get a list of the files to add from a folder into an npm package",

@@ -8,23 +8,23 @@ "directories": {

},
"main": "index.js",
"main": "lib",
"dependencies": {
"glob": "^7.1.6",
"glob": "^7.2.0",
"ignore-walk": "^4.0.1",
"npm-bundled": "^1.1.1",
"npm-bundled": "^1.1.2",
"npm-normalize-package-bin": "^1.0.1"
},
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"author": "GitHub Inc.",
"license": "ISC",
"files": [
"bin/index.js",
"index.js"
"bin",
"lib"
],
"devDependencies": {
"@npmcli/lint": "^1.0.2",
"@npmcli/template-oss": "^2.9.2",
"mutate-fs": "^2.1.1",
"tap": "^15.0.6"
"tap": "^15.1.6"
},
"scripts": {
"test": "tap",
"posttest": "npm run lint --",
"posttest": "npm run lint",
"snap": "tap",

@@ -36,5 +36,7 @@ "postsnap": "npm run lintfix --",

"eslint": "eslint",
"lint": "npm run npmclilint -- \"*.*js\" \"test/**/*.*js\"",
"lint": "eslint '**/*.js'",
"lintfix": "npm run lint -- --fix",
"npmclilint": "npmcli-lint"
"npmclilint": "npmcli-lint",
"postlint": "npm-template-check",
"template-copy": "npm-template-copy --force"
},

@@ -59,4 +61,7 @@ "repository": {

"engines": {
"node": ">=10"
"node": "^12.13.0 || ^14.15.0 || >=16"
},
"templateOSS": {
"version": "2.9.2"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc