
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
package-json-type
Advanced tools
A TypeScript definition for package.json file
npm install -S package-json-type
yarn add package-json-type
import {
IDependencyMap,
IEngines,
IPackageJson,
SPDXLicenseIDApproved
} from 'package-json-type';
const dependency: IDependencyMap = {
bar: '^1.0.0',
baz: '^2.1.0',
qux: 'file:../src/qux'
};
const engines: IEngines = {
node: '>=6.0.1 <11.0.0',
yarn: '^1.15.0',
zlib: '^0.14.0'
};
const license: SPDXLicenseIDApproved = 'MIT';
const pkg: IPackageJson = {
name: 'foo',
version: '1.2.3',
dependency,
description: 'This is awesome foo',
engines,
license
};
If you have any problems, please let us know on github issues.
Contributions are always welcome :)
npm i
or yarn
inside the projectnpm run dev
to run in dev modenpm test
or yarn test
npm run lint
or yarn lint
This project is licensed under MIT license.
FAQs
A TypeScript definition for the package.json
We found that package-json-type 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 joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.