Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

min-4byte-code-point

shinnn5.4kUnlicense1.0.0

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

minimum, min, code, point, code-point, const, constant, unicode, 0x10000, utf8, browser, client-side

readme

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