
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
base-package-json
Advanced tools
Basic package.json readable stream. Sets the minimum amount of properties to
satisfy npm
. Easy to extend, useful for code generators.
$ npm install base-package-json
const package = require('base-package-json')
const through = require('through2')
package({ name: 'my-package' })
.pipe(through({ objectMode: true }, (obj, enc, cb) => {
obj.dependencies.rimraf = '2.4.3'
obj.description = 'My great description'
cb(null, obj)
}))
Create a blank package.json
. By default it sets name
, version
, scripts
,
dependencies
and devDependencies
.
The following options are accepted:
<name>
.1.0.0
.false
for
applications. Defaults to undefined
(e.g. will not set).FAQs
Basic package.json readable stream
We found that base-package-json 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.