New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

atob-umd

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atob-umd

A UMD module for atob()

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

atob-umd

NPM version Dependency Status Build Status Coverage Status

About

This project is deprecated and is no longer maintained

atob-umd is a Javascript UMD module for atob().

Installation for production

with Node.js

atob-umd is available on NPM

You can install it with the following command:

npm install atob-umd

Browser globals and AMD

atob-umd is available on Bower

To install it from Bower, just run

bower install atob-umd

Usage

Usage is pretty straightforward; in the following example, a function atob is created to mimic the native function with the same name:

var atob = function (a) {
  var umd = new Atob();
  return umd.handle(a).b;
};
var res = atob('SGVsbG8gV29ybGQ=');

Then, res will return Hello World.

Installation for development

You also can download the whole project (and build it from its source; see below).

Either use git clone command to get it:

git clone https://github.com/t1st3-deprecate/atob-umd.git

Or download the latest version of the whole project.

Then, get the dependencies of the project from both Bower and NPM:

npm install
bower install

Build from source

First, see "Installation for development" above. Do not forget to get the dependencies!

Then, you also need to install Gulp globally to build the project.

npm install -g gulp

See more at the "Getting started with Gulp" page.

Once you got the dependencies and installed Gulp globally, to get info about the package from the command line, just run:

gulp info

You are now ready to build!

The source is located in the "src" folder; the built target is located in the "dist" folder.

To build, just run:

gulp build

Tests

To test, you can use either the npm test command or the gulp test command:

npm test

or

gulp test

Serve and livereload

You can also use the serve task to load the html pages from ./test/ in your browser.

gulp serve

Once it has loaded the page in the browser, this task watches for any modification in the source. If changes happen in the source, the task automatically reloads the page in the browser (livereload).

License

This piece of code is triple-licensed: MIT / BSD / GPL licenses

Initial author

t1st3

Keywords

FAQs

Package last updated on 16 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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