Socket
Socket
Sign inDemoInstall

to-utf8

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    to-utf8

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


Version published
Weekly downloads
165K
increased by0.97%
Maintainers
1
Install size
5.51 kB
Created
Weekly downloads
 

Readme

Source

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

Last updated on 30 Apr 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc