atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
251 B

(function () {
"use strict";
var atob = require('./index')
, encoded = "SGVsbG8gV29ybGQ="
, unencoded = "Hello World"
, result
;
if (unencoded !== atob(encoded)) {
return;
}
console.log('[PASS] all tests pass');
}());