A zero dependency 🎉 base64 encoder and decoder for Node.js.
npm install node-encoder
- Zero dependencies 🎉
- Lightweight (
~4kb
) 🚀
const {encode, decode} = require('node-encoder')
encode('hello world!') //=> aGVsbG8gd29ybGQh
decode('aGVsbG8gd29ybGQh') //=> hello world!
Takes a single utf-8/ascii
string input as argument and retuns it's base64
encoded string version.
Takes a single base64
string input as argument and retuns it's utf-8
decoded string version.
MIT 2021 © Rocktim Saikia