Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@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
The npm package @parcel/transformer-json receives a total of 245,740 weekly downloads. As such, @parcel/transformer-json popularity was classified as popular.
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.