encoded
v1.0.0
Published
Encode things
Downloads
25
Maintainers
Readme
encoded
Encode things
Install
$ npm install --save encoded
Usage
const encoded = require('encoded');
encoded.encode('unicorns');
//=> 'dW5pY29ucw=='
encoded.decode('cmFpbmJvd3M=');
//=> 'rainbows'
API
encoded.encode(input, [type])
input
Type: any
The data you want to encode.
type
Type: string
Default: base64
How you want the data to be encoded.
encoded.encode(input, [type])
input
Type: string
An encoded string.
type
Type: string
Default: base64
How the string is encoded.
to
Type: string
Default: ascii
What you want to get back.
License
MIT © Tobias Herber