min-4byte-code-point

1.0.0 • Public • Published

min-4byte-code-point

NPM version Bower version Build Status devDependency Status

The minimum code point of 4 byte characters in UTF-8

import MIN_4BYTE_CODE_POINT from 'min-4byte-code-point';

MIN_4BYTE_CODE_POINT //=> 65536
MIN_4BYTE_CODE_POINT === 0x10000; //=> true

new Buffer(String.fromCodePoint(MIN_4BYTE_CODE_POINT)).byteLength; //=> 4
new Buffer(String.fromCodePoint(MIN_4BYTE_CODE_POINT - 1)).byteLength; //=> 3

Installation

Package managers

npm

npm install min-4byte-code-point

bower

bower install min-4byte-code-point

Standalone

Download the script file directly.

License

The Unlicense

Versions

Current Tags

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

Version History

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

Package Sidebar

Install

npm i min-4byte-code-point

Weekly Downloads

662

Version

1.0.0

License

Unlicense

Last publish

Collaborators

  • shinnn