๐Ÿ“ฆ ljharb / intl-fallback-symbol

ECMA-402 Intl spec's internal `FallbackSymbol`

โ˜… 4 stars โ‘‚ 0 forks ๐Ÿ‘ 4 watching โš–๏ธ MIT License
ecmascriptfallbackfallback-symbolfallbacksymbolintljavascriptsymbol
๐Ÿ“ฅ Clone https://github.com/ljharb/intl-fallback-symbol.git
HTTPS git clone https://github.com/ljharb/intl-fallback-symbol.git
SSH git clone git@github.com:ljharb/intl-fallback-symbol.git
CLI gh repo clone ljharb/intl-fallback-symbol
Jordan Harband Jordan Harband [readme] replace runkit CI badge with shields.io check-runs badge be2b2e8 7 days ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ test
๐Ÿ“ types
๐Ÿ“„ .eslintrc
๐Ÿ“„ .gitignore
๐Ÿ“„ .npmrc
๐Ÿ“„ .nycrc
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ index.d.ts
๐Ÿ“„ index.js
๐Ÿ“„ LICENSE
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

intl-fallback-symbol Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

ECMA-402 Intl spec's internal FallbackSymbol.

This Symbol is well-known - shared across realms.

It is present in the following engines with the description "IntlLegacyConstructedSymbol" (spec):

  • node >= 16
  • Chrome >= 91
  • Safari >= 14.1
  • Firefox >= 54
It is present in the following engines with the description "IntlFallback": (The ES2017 Intl spec did not specify a description)
  • node >=8 <16
  • Chrome 57 - 90
When it is present, the package will export it; when not, it will export undefined.

Example

var IntlFallbackSymbol = require('intl-fallback-symbol');

var assert = require('assert');

assert(typeof IntlFallbackSymbol === 'symbol');

Tests

Simply clone the repo, npm install, and run npm test