Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@babel/plugin-syntax-json-strings
Advanced tools
Allow parsing of the U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS 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.
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"}`;
@babel/plugin-syntax-object-rest-spread is a Babel plugin that allows you to use the object rest/spread syntax in your JavaScript code. This plugin is similar in that it enables a specific syntax feature from newer ECMAScript versions, making it easier to write modern JavaScript.
@babel/plugin-syntax-optional-catch-binding is a Babel plugin that allows you to use the optional catch binding syntax in your JavaScript code. Like @babel/plugin-syntax-json-strings, it enables a specific syntax feature from newer ECMAScript versions, simplifying the code and making it more readable.
@babel/plugin-syntax-dynamic-import is a Babel plugin that allows you to use the dynamic import syntax in your JavaScript code. This plugin is similar in that it enables a specific syntax feature from newer ECMAScript versions, allowing for more dynamic and modular code.
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.
Using npm:
npm install --save-dev @babel/plugin-syntax-json-strings
or using yarn:
yarn add @babel/plugin-syntax-json-strings --dev
FAQs
Allow parsing of the U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings
The npm package @babel/plugin-syntax-json-strings receives a total of 25,717,134 weekly downloads. As such, @babel/plugin-syntax-json-strings popularity was classified as popular.
We found that @babel/plugin-syntax-json-strings demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.