make-github-pseudonymous-again/js-library

js-codec

make-github-pseudonymous-again opened this issue · 3 comments

String codecs should have two methods. Options could contain stuff like RFC, lowercase/uppercase, alphabet etc..

  • encode( string [, options] ) => bytes
  • decode( bytes [, options] ) => string

There should be three base errors in @codec-bytes/error

  • CodecError (inherits from ValueError)
  • EncodeError (inherits from CodecError)
  • DecodeError (inherits from CodecError)
  • TranslateError (inherits from CodecError)