emailjs-stringencoding

Brings utf8 de/encoding to all platforms.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
emailjs-stringencoding
812.0.05 years ago7 years agoMinified + gzip package size for emailjs-stringencoding in KB

Readme

emailjs-stringencoding
Build Status JavaScript Style Guide ES6+
This is a slimmed down version of Joshua Bell's String Encoding Polyfill which only supports UTF-8, mainly to reach a reduced build size and to work across all JS runtimes.

Usage

npm install --save emailjs-stringencoding

import { encode, decode } from 'emailjs-stringencoding'
const uint8array = encode(string);
const string = decode(uint8array);