Skip to content

chrisdickinson/to-utf8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-utf8

given an integer-indexable input iterable, produce a utf8 string.

Build Status browser support

  var utf8 = require('to-utf8')

  var buf = new Buffer('淾淾淾 hello world 淾淾 yep ƒuu 淾', 'utf8')
  assert.equal(utf8(buf), buf.toString('utf8'))

api

utf8(iterable[, byteStart][, byteEnd]) -> string

take an iterable of bytes (0...0xFF) and produce an utf8 string.

license

MIT

About

single-function form of node's Buffer.toString(utf8)

Resources

License

Stars

Watchers

Forks

Packages

No packages published