AJ ONeal
8 years ago
5 changed files with 17 additions and 20 deletions
@ -1,10 +1,6 @@ |
|||
#!/usr/bin/env node
|
|||
/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/ |
|||
(function () { |
|||
"use strict"; |
|||
'use strict'; |
|||
|
|||
var atob = require('../index') |
|||
; |
|||
|
|||
console.log(atob(process.argv[2])); |
|||
}()); |
|||
var atob = require('../node-atob'); |
|||
var str = process.argv[2]; |
|||
console.log(atob(str)); |
|||
|
@ -0,0 +1,2 @@ |
|||
// do nothing window.atob already exists
|
|||
// NOTE: iOS Web Worker and other weird environments may not have atob
|
@ -1,9 +0,0 @@ |
|||
(function () { |
|||
"use strict"; |
|||
|
|||
function atob(str) { |
|||
return new Buffer(str, 'base64').toString('binary'); |
|||
} |
|||
|
|||
module.exports = atob; |
|||
}()); |
@ -0,0 +1,7 @@ |
|||
"use strict"; |
|||
|
|||
function atob(str) { |
|||
return new Buffer(str, 'base64').toString('binary'); |
|||
} |
|||
|
|||
module.exports = atob.atob = atob; |
Loading…
Reference in new issue