Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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
The npm package @formatjs/icu-skeleton-parser receives a total of 3,707,396 weekly downloads. As such, @formatjs/icu-skeleton-parser popularity was classified as popular.
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 0 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.