JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1907846
  • Score
    100M100P100Q181027F

Basic Utf-8 encoding/decoding library to alleviate confusion among people.

Package Exports

  • utf8

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (utf8) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node Utf-8 Encoding/Decoding Functions

This is a port of the work done by Chris Veness over the past ten years in relation to encoding and decoding Utf-8 data in a JavaScript environment. I didn't write the core of this, merely modified it to work with Node's package structure and be published on npm, where people can by and large get used to it and stop being confused about this issue. ;P

Installation

npm install utf8

Usage

var utf8 = require('utf8');
    
var c = utf8.encode("私は")
utf8.decode(c);

Questions, Comments?

@ryanmcgrath