utf8int

Convert a string to utf8 character array in integers.

Usage no npm install needed!

<script type="module">
  import utf8int from 'https://cdn.skypack.dev/utf8int';
</script>

README

utf8int

Convert a string to utf8 character array in integers.

Install

$ npm install --save utf8int

Usage

var utf8int = require('utf8int');

var string = 'あいうえお';
var intVals = utf8int(string);

console.log(intVals); // [0x3042, 0x3044, 0x3046, 0x3048, 0x304a]

test

$ npm test