Skip to content

michaelrhodes/utf8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utf8

ci

install

npm install https://pkg.mkr.sx/utf8/2.0.0.tgz

use

var string = require('utf8/string')
var bytes = require('utf8/bytes')

string([117, 116, 102, 56])
> 'utf8'

string(new Uint8Array([117, 116, 102, 56]))
> 'utf8'

string(new Uint8Array([117, 116, 102, 56]).buffer)
> 'utf8'

bytes('utf8')
> Uint8Array([117, 116, 102, 56])

obey

CC0-1.0

About

utf8 string ⇄ bytes (111 B)

Resources

Stars

Watchers

Forks