Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parcel/transformer-json

Package Overview
Dependencies
Maintainers
1
Versions
879
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/transformer-json

  • 2.0.0-alpha.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
336K
decreased by-22.19%
Maintainers
1
Weekly downloads
 
Created

What is @parcel/transformer-json?

@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.

What are @parcel/transformer-json's main functionalities?

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);

Other packages similar to @parcel/transformer-json

FAQs

Package last updated on 15 Oct 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc