node-high-order
Calculates the number of bytes in a UTF-8 glyph given just its first byte
Usage:
const highOrder = ; console; //-> 2console; //-> 1 // continuation byteconsole; //-> 0 console); //-> 4
License
Licensed under the MIT License. You can find a copy of it in LICENSE.