max-code-point
v1.0.0
Published
The maximum code point available in JavaScript
Downloads
6,747
Maintainers
Readme
max-code-point
The maximum code point available in JavaScript
import MAX_CODE_POINT from 'max-code-point';
MAX_CODE_POINT //=> 1114111
MAX_CODE_POINT === 0x10ffff; //=> true
String.fromCodePoint(MAX_CODE_POINT); //=> throws no errors
String.fromCodePoint(MAX_CODE_POINT + 1); //=> throws a range error
Installation
Package managers
npm
npm install max-code-point
bower
bower install max-code-point
Standalone
Download the script file directly.