Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

ivis-mizuguchi ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому
..
.npmignore ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому
.yarn-metadata.json ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому
.yarn-tarball.tgz ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому
LICENSE.md ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому
README.md ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому
atob-browser.js ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому
atob-node.js ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому
package.json ce83af7f52 git-annex in jovyan@jupyter-ivis-5frino-5fmizuguchi-40rdm-2enii-2eac-2ejp--ivis-2dm:~/ 2 роки тому

README.md

atob-lite

Smallest/simplest possible means of using atob with both Node and browserify.

In the browser, decoding base64 strings is done using:

var decoded = atob(encoded)

However in Node, it's done like so:

var decoded = new Buffer(encoded, 'base64').toString('utf8')

You can easily check if Buffer exists and switch between the approaches accordingly, but using Buffer anywhere in your browser source will pull in browserify's Buffer shim which is pretty hefty. This package uses the main and browser fields in its package.json to perform this check at build time and avoid pulling Buffer in unnecessarily.

Usage

NPM

decoded = atob(encoded)

Returns the decoded value of a base64-encoded string.

License

MIT. See LICENSE.md for details.