
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
@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 22,187,598 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.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.