base64-js

WebJar for base64-js

License

License

MIT
Categories

Categories

JavaScript Languages
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

base64-js
Last Version

Last Version

1.5.1
Release Date

Release Date

Type

Type

jar
Description

Description

base64-js
WebJar for base64-js
Project URL

Project URL

https://www.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.npm/base64-js/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>base64-js</artifactId>
    <version>1.5.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/base64-js/
implementation 'org.webjars.npm:base64-js:1.5.1'
// https://jarcasting.com/artifacts/org.webjars.npm/base64-js/
implementation ("org.webjars.npm:base64-js:1.5.1")
'org.webjars.npm:base64-js:jar:1.5.1'
<dependency org="org.webjars.npm" name="base64-js" rev="1.5.1">
  <artifact name="base64-js" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='base64-js', version='1.5.1')
)
libraryDependencies += "org.webjars.npm" % "base64-js" % "1.5.1"
[org.webjars.npm/base64-js "1.5.1"]

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.5.1
1.3.1
1.3.0
1.2.3
1.2.1
1.2.0
1.1.2
0.0.8
0.0.2