Files
npm/lib/utils/base64.js
2010-08-10 14:38:54 -07:00

4 lines
159 B
JavaScript

exports.encode = function (str) { return new Buffer(str).toString("base64") }
exports.decode = function (str) { return new Buffer(str, "base64").toString() }