var base64 = require('./index');
base64.encode('whatever');
base64.decode('d2hhdGV2ZXI=');
base64.urlsafe_b64decode('d2hhdGV2ZXI=');
base64.urlsafe_b64encode('whatever');
encode the arg input
decode the arg input
- call base64.encode
- replace char
+
to-
- replace char
/
to_
- return replace string
- replace char
-
to+
- replace char
_
to/
- call base64.decode
- return decode string;
npm test