Permalink
Browse files

lib/base64: more natural exports

  • Loading branch information...
1 parent d3981f8 commit 7dda12aff8016fd9a51c9e5e41b3b3e26f2c9909 @jeromeetienne committed Sep 6, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/base64.js
View
@@ -165,4 +165,10 @@ var base64 = {
}
// exports public functions
+exports.encode = base64.encode;
+exports.decode = base64.decode;
+exports.encode_safe = base64.encode_safe;
+exports.decode_safe = base64.decode_safe;
+
+// obsolete API - backward compatiblity
exports.base64 = base64;

0 comments on commit 7dda12a

Please sign in to comment.