to-utf8
single-function form of node's Buffer.toString(utf8)
Last updated 11 years ago by chrisdickinson .
MIT · Repository · Bugs · Original npm
$ cnpm install to-utf8 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.2                                ...           latest (11 years ago)

2 Versions

  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org