base64-js

WebJar for base64-js

License

License

MIT
Categories

Categories

JavaScript Languages
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

base64-js
Last Version

Last Version

1.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

base64-js
WebJar for base64-js
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/beatgammit/base64-js

Download base64-js

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

base64-js

base64-js does basic base64 encoding/decoding in pure JS.

build status

Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.

Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.

install

With npm do:

npm install base64-js and var base64js = require('base64-js')

For use in web browsers do:

<script src="base64js.min.js"></script>

Get supported base64-js with the Tidelift Subscription

methods

base64js has three exposed functions, byteLength, toByteArray and fromByteArray, which both take a single argument.

  • byteLength - Takes a base64 string and returns length of byte array
  • toByteArray - Takes a base64 string and returns a byte array
  • fromByteArray - Takes a byte array and returns a base64 string

license

MIT

Versions

Version
1.3.0