Socket
Socket
Sign inDemoInstall

atob

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atob - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

bin/atob.js

36

package.json
{
"name" : "atob",
"homepage" : "https://github.com/coolaj86/node-browser-compat",
"description" : "atob for Node.JS (it's a one-liner)",
"repository" : {
"type": "git",
"url": "git://github.com/coolaj86/node-browser-compat.git"
},
"keywords" : ["atob", "browser"],
"author" : "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)",
"engines" : {
"node": ">= 0.4.0"
},
"dependencies" : {
},
"main" : "index",
"version" : "1.0.0"
"name": "atob",
"homepage": "https://github.com/coolaj86/node-browser-compat",
"description": "atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)",
"repository": {
"type": "git",
"url": "git://github.com/coolaj86/node-browser-compat.git"
},
"keywords": [
"atob",
"browser"
],
"author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)",
"engines": {
"node": ">= 0.4.0"
},
"main": "index",
"bin": {
"atob": "bin/atob.js"
},
"version": "1.0.1"
}

@@ -5,7 +5,8 @@ (function () {

var atob = require('./index')
, expected = "SGVsbG8gV29ybGQ="
, encoded = "SGVsbG8gV29ybGQ="
, unencoded = "Hello World"
, result
;
if (expected !== atob("Hello World")) {
if (unencoded !== atob(encoded)) {
return;

@@ -12,0 +13,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc