Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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`

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 >= 54

It 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 - 90

When 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