Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
YAML parser that preserves comments and styling
import YAWN from 'yawn-yaml';
let str = `
# my comment
value: 1 # the value is here!
`;
let yawn = new YAWN(str);
// update the `json` property
yawn.json = { value: 2 };
// value in `yawn.yaml` is now changed.
// with comments and styling preserved.
console.log(yawn.yaml); // =>
// # my comment
// value: 2 # the value is here!
Use npm or yarn to install yawn-yaml
package
npm install --save yawn-yaml
yarn add yawn-yaml
To install dependencies run:
yarn install
To run tests continuously and watch for changes
yarn start
To run the test run:
yarn test
FAQs
YAML parser that preserves comments and styling
We found that yawn-yaml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.