JSPM

max-code-point

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1412
  • Score
    100M100P100Q107579F
  • License Unlicense

The maximum code point available in JavaScript

Package Exports

  • max-code-point

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (max-code-point) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

max-code-point

NPM version Bower version Build Status devDependency Status

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.

License

The Unlicense