🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-utf8

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

0.0.2
latest
Version published
Weekly downloads
209K
-8.5%
Maintainers
1
Weekly downloads
 
Created

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

Keywords

FAQs

Package last updated on 30 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts