
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@discord/intl-flat-json-parser
Advanced tools
Rust-based JSON parser with location information for flat objects.
A Rust-based JSON parser with location information for flat objects, used by @discord/intl-message-database
to provide more accurate diagnostics for values parsed out of JSON files.
The parser is specifically built to only understand a flat, well-formed object structure and has minimal error recovery, but fully supports Unicode and other JSON string syntax like escapes.
pnpm add @discord/intl-flat-json-parser
import { parseJson, parseJsonFile } from '@discord/intl-flat-json-parser';
// Parse a string as flat JSON
const jsonContent = `{
"MESSAGE_ONE": "Hello, this is the first message",
"MESSAGE_TWO": "Another message!"
}`;
const messages = parseJson(jsonContent);
console.log(messages[0]);
//=> {
// key: "MESSAGE_ONE",
// value: "Hello, this is the first message",
// position: {
// line: 2,
// col: 19
// }
// }
// Or pass a file path to get parsed directly from the file system
const directMessages = parseJsonFile('some/file/path.json');
FAQs
Rust-based JSON parser with location information for flat objects.
We found that @discord/intl-flat-json-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.