Encode things
$ npm install --save encoded
const encoded = require('encoded');
encoded.encode('unicorns');
//=> 'dW5pY29ucw=='
encoded.decode('cmFpbmJvd3M=');
//=> 'rainbows'
Type: any
The data you want to encode.
Type: string
Default: base64
How you want the data to be encoded.
Type: string
An encoded string.
Type: string
Default: base64
How the string is encoded.
Type: string
Default: ascii
What you want to get back.
MIT © Tobias Herber