convert-string

Convert to/from strings and array of bytes

convert-string

JavaScript component to convert to/from strings and byte arrays.

AMD/CommonJS compatible.

npm install --save convert-string
component install cryptocoin/convert-string
bower install convert-string
<script src="/path/to/convert-string.js"></script>

Loosely inspired by code from here: https://github.com/vbuterin/bitcoinjs-lib & CryptoJS

(these sources are also included as PDFs in the repo in case the links go dead)

  • http://ecmanaut.blogspot.com/2006/07/encoding-decoding-utf8-in-javascript.html
  • http://hossa.in/2012/07/20/utf-8-in-javascript.html

(MIT License)

Copyright 2013, JP Richardson jprichardson@gmail.com