JSPM

min-4byte-code-point

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

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

Package Exports

  • min-4byte-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 (min-4byte-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

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