https://github.com/shinnn/max-code-point
The maximum code point available in JavaScript
https://github.com/shinnn/max-code-point
Last synced: 6 months ago
JSON representation
The maximum code point available in JavaScript
- Host: GitHub
- URL: https://github.com/shinnn/max-code-point
- Owner: shinnn
- License: unlicense
- Created: 2016-06-08T07:32:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-11T22:17:25.000Z (over 6 years ago)
- Last Synced: 2025-04-09T22:53:23.836Z (6 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# max-code-point
[](https://www.npmjs.com/package/max-code-point)
[](https://travis-ci.com/shinnn/max-code-point)The maximum [code point](https://unicode.org/glossary/#code_point) available in [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript)
```javascript
import MAX_CODE_POINT from 'max-code-point';MAX_CODE_POINT //=> 1114111
MAX_CODE_POINT === 0x10ffff; //=> trueString.fromCodePoint(MAX_CODE_POINT); //=> throws no errors
String.fromCodePoint(MAX_CODE_POINT + 1); //=> throws a RangeError
```## Installation
[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).
```
npm install max-code-point
```## License
[The Unlicense](./LICENSE)