Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ljharb/intl-fallback-symbol
ECMA-402 Intl spec's internal `FallbackSymbol`
https://github.com/ljharb/intl-fallback-symbol
ecmascript fallback fallback-symbol fallbacksymbol intl javascript symbol
Last synced: 17 days ago
JSON representation
ECMA-402 Intl spec's internal `FallbackSymbol`
- Host: GitHub
- URL: https://github.com/ljharb/intl-fallback-symbol
- Owner: ljharb
- License: mit
- Created: 2022-04-25T16:01:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-18T16:19:54.000Z (about 2 months ago)
- Last Synced: 2025-01-08T17:05:38.646Z (25 days ago)
- Topics: ecmascript, fallback, fallback-symbol, fallbacksymbol, intl, javascript, symbol
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# intl-fallback-symbol [![Version Badge][npm-version-svg]][package-url]
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url][![npm badge][npm-badge-png]][package-url]
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](https://tc39.es/ecma402/#intl-object)):
- node >= 16
- Chrome >= 91
- Safari >= 14.1
- Firefox >= 54It is present in the following engines with the description `"IntlFallback"`: (The [ES2017 Intl spec](https://402.ecma-international.org/4.0/#intl-object) did not specify a description)
- node >=8 <16
- Chrome 57 - 90When it is present, the package will export it; when not, it will export `undefined`.
## Example
```js
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`[package-url]: https://npmjs.org/package/intl-fallback-symbol
[npm-version-svg]: https://versionbadg.es/ljharb/intl-fallback-symbol.svg
[deps-svg]: https://david-dm.org/ljharb/intl-fallback-symbol.svg
[deps-url]: https://david-dm.org/ljharb/intl-fallback-symbol
[dev-deps-svg]: https://david-dm.org/ljharb/intl-fallback-symbol/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/intl-fallback-symbol#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/intl-fallback-symbol.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/intl-fallback-symbol.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/intl-fallback-symbol.svg
[downloads-url]: https://npm-stat.com/charts.html?package=intl-fallback-symbol
[codecov-image]: https://codecov.io/gh/ljharb/intl-fallback-symbol/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/intl-fallback-symbol/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/intl-fallback-symbol
[actions-url]: https://github.com/ljharb/intl-fallback-symbol/actions