atob-lite

WebJar for atob-lite

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

atob-lite
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

atob-lite
WebJar for atob-lite
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/hughsk/atob-lite

Скачать atob-lite

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/atob-lite/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>atob-lite</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/atob-lite/
implementation 'org.webjars.npm:atob-lite:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/atob-lite/
implementation ("org.webjars.npm:atob-lite:2.0.0")
'org.webjars.npm:atob-lite:jar:2.0.0'
<dependency org="org.webjars.npm" name="atob-lite" rev="2.0.0">
  <artifact name="atob-lite" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='atob-lite', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "atob-lite" % "2.0.0"
[org.webjars.npm/atob-lite "2.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
2.0.0
1.0.0