You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-json-strings

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-json-strings

Allow parsing of the U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings


Version published
Weekly downloads
26M
increased by0.71%
Maintainers
6
Install size
8.60 kB
Created
Weekly downloads
 

Package description

What is @babel/plugin-syntax-json-strings?

@babel/plugin-syntax-json-strings is a Babel plugin that allows you to use JSON strings in your JavaScript code. This plugin enables the parsing of JSON strings as part of the ECMAScript 2019 (ES10) specification, which allows JSON-like strings to be used directly in JavaScript code.

What are @babel/plugin-syntax-json-strings's main functionalities?

Enable JSON Strings Syntax

This feature allows you to use JSON strings directly in your JavaScript code. The plugin parses the JSON string and makes it usable within your code without needing to parse it manually.

const jsonString = `{"key": "value"}`;

Other packages similar to @babel/plugin-syntax-json-strings

Readme

Source

@babel/plugin-syntax-json-strings

Allow parsing of the U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings

See our website @babel/plugin-syntax-json-strings for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-json-strings

or using yarn:

yarn add @babel/plugin-syntax-json-strings --dev

Keywords

FAQs

Package last updated on 13 Jan 2020

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc