0.2.0 • Published 10 years ago
rfc-5987-encoding v0.2.0
rfc-5987-encoding

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.