0.2.0 • Published 9 years ago

rfc-5987-encoding v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

rfc-5987-encoding Code Climate Build Status js-standard-style

Encoding as per RFC 5987

encode(arg)

Returns the encoded str with charset UTF-8. If arg is an object, the str and lang properties are used for the content and language, respectively. Otherwise, arg cast as string and the defaultLang property of the encode function will be used.

decode(str)

Returns an object with properties str and lang. Currently only UTF-8 is supported.

0.2.0

9 years ago

0.1.0

9 years ago