Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@parcel/transformer-json
Advanced tools
@parcel/transformer-json is a plugin for the Parcel bundler that allows you to transform JSON files. It enables you to import JSON files directly into your JavaScript code, making it easier to work with JSON data in your projects.
Importing JSON files
This feature allows you to import JSON files directly into your JavaScript code. The JSON data is parsed and made available as a JavaScript object.
import data from './data.json';
console.log(data);
Transforming JSON data
This feature allows you to transform JSON data after importing it. In this example, each item in the JSON data is transformed by adding a new property.
import data from './data.json';
const transformedData = data.map(item => ({ ...item, transformed: true }));
console.log(transformedData);
json-loader is a webpack loader that allows you to import JSON files into your JavaScript code. It provides similar functionality to @parcel/transformer-json but is specific to the webpack bundler.
rollup-plugin-json is a Rollup plugin that enables you to import JSON files. It offers similar capabilities to @parcel/transformer-json but is designed for use with the Rollup bundler.
FAQs
Unknown package
We found that @parcel/transformer-json demonstrated a healthy version release cadence and project activity because the last version was released less than 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.