max-code-point

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    357
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    357
  • 0.0.0
    0

Package Sidebar

Install

npm i max-code-point

Weekly Downloads

357

Version

1.0.0

License

Unlicense

Last publish

Collaborators

  • shinnn