Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.