Product
Introducing Ruby Support in Socket
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
@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,086,042 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 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.
Product
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.