Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-json-strings

Package Overview
Dependencies
Maintainers
6
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-proposal-json-strings

Escape U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings


Version published
Weekly downloads
6.7M
decreased by-2.19%
Maintainers
6
Weekly downloads
 
Created

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

The @babel/plugin-proposal-json-strings package is a plugin for Babel that allows you to use the JSON strings proposal in your JavaScript code. This proposal makes it possible to write escape sequences for line separators (\u2028) and paragraph separators (\u2029) within string literals, which are otherwise not allowed in JSON. This can be useful when dealing with JSON data that may include these characters.

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

JSON Strings Proposal Support

This feature allows you to include line and paragraph separators in your JSON strings, which are part of the ECMAScript 2019 (ES10) specification. The plugin transforms these literals into valid JavaScript strings.

"This is a JSON string with a line separator: \u2028 and a paragraph separator: \u2029"

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

Keywords

FAQs

Package last updated on 22 Nov 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