string-to-utf8
v0.1.0
Published
Encode JavaScript strings in UTF-8
Downloads
7
Maintainers
Readme
toUtf8
Convert JavaScript strings to UTF-8 encode Uint8Array
s. Zero dependencies. Written in vanilla JavaScript.
Usage
const toUtf8 = require('toUtf8')
toUtf8('🇨🇭')