Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@formatjs/icu-skeleton-parser
Advanced tools
The @formatjs/icu-skeleton-parser package is a utility for parsing ICU MessageFormat patterns into an abstract syntax tree (AST). It is part of the FormatJS suite of libraries, which are designed to help with internationalization of applications. This package specifically deals with the parsing of ICU MessageFormat skeletons, which are shorthand for specifying date and time formats.
Parsing ICU MessageFormat skeletons
This feature allows you to parse ICU MessageFormat skeletons into an AST. The code sample demonstrates how to parse a simple date skeleton ('MMMd') which represents a format like 'Jul 20'.
const { parse } = require('@formatjs/icu-skeleton-parser');
const ast = parse('MMMd');
console.log(ast);
This package is also part of the FormatJS suite and provides functionality to parse ICU MessageFormat strings into an AST. It is similar to @formatjs/icu-skeleton-parser but focuses on the full MessageFormat pattern rather than just the skeleton.
Messageformat is a library that provides ICU MessageFormat support, including parsing and formatting for different locales. It is a more comprehensive solution compared to @formatjs/icu-skeleton-parser, which focuses solely on parsing skeletons.
Globalize is a library for i18n and l10n that provides number formatting, date and time formatting, and message formatting. It uses the ICU MessageFormat patterns but does not expose a dedicated parsing API like @formatjs/icu-skeleton-parser.
FAQs
Unknown package
We found that @formatjs/icu-skeleton-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.