node-base64-urlsafe
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -10,3 +10,3 @@ /** | ||
* | ||
* @param {String} str ASCII representation | ||
* @param {String} str utf8 representation | ||
*/ | ||
@@ -16,4 +16,4 @@ | ||
return new Buffer(str).toString('base64') | ||
.replace(/=+$/, '') | ||
.replace(/\//, '_') | ||
.replace(/=+$/g, '') | ||
.replace(/\//g, '_') | ||
.replace(/\+/g, '-'); | ||
@@ -20,0 +20,0 @@ }; |
{ | ||
"name": "node-base64-urlsafe", | ||
"description": "Encode/Decode text to base64 for url use.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"maintainers": [ | ||
@@ -6,0 +6,0 @@ "vanetix <matmcfarland@gmail.com>" |
2732
27