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.
@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.
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.