Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
broccoli-cldr-data
Advanced tools
Broccoli plugin for writing results of formatjs-extract-cldr-data to a broccoli node grouped by language.
var extract = require('broccoli-cldr-data');
extract(inputNode, {
locales: ['fr-ca', 'en-ca'], /* defaults to all locales */
moduleType: 'commonjs', /* options: commonjs, es6 */
pluralRules: true, /* defaults to true */
relativeFields: true /* defaults to false */
});
// en.js
module.exports = [
{"locale":"en-CA","parentLocale":"en-001"},
{"locale":"en-001","parentLocale":"en"},
{"locale":"en","pluralRuleFunction":function (n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"}}];
// fr.js
module.exports = [
{"locale":"fr-CA","parentLocale":"fr"},
{"locale":"fr","pluralRuleFunction":function (n,ord){if(ord)return n==1?"one":"other";return n>=0&&n<2?"one":"other"}}
];
This software is free to use under the MIT license. See the LICENSE file for license text and copyright information.
The underlying formatjs-extract-cldr-data is licensed under the Yahoo Inc. BSD license. See the FormatJS license files for their license text and copyright information.
The CLDR data contained in this packaged is licensed under the Apache, ICU, and Unicode licenses. See the CLDR license files for their license text and copyright information.
FAQs
extracts cldr data to a broccoli directory
The npm package broccoli-cldr-data receives a total of 1,176 weekly downloads. As such, broccoli-cldr-data popularity was classified as popular.
We found that broccoli-cldr-data demonstrated a not healthy version release cadence and project activity because the last version was released 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 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.