angular-utf8-base64

WebJar for angular-utf8-base64

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

angular-utf8-base64
Last Version

Last Version

0.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

angular-utf8-base64
WebJar for angular-utf8-base64
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/munkychop/angular-utf8-base64

Download angular-utf8-base64

How to add to project

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

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.

angular-utf8-base64

AngularJS service for UTF-8 and Base64 and Base64url Javascript Encoding.

CommonJS support wrapper for the version by Andrey Bezyazychniy. His implementation simply puts an AngularJS module wrapper around the Really fast Javascript Base64 encoder/decoder with utf-8 support, and this version wraps both to provide CommonJS support.

Installation

NPM

npm install angular-utf8-base64
<script src="angular-utf8-base64.js"></script>

Usage

angular
    .module('someApp', ['utf8-base64'])
    .controller('someController', [

        '$scope', 'base64',
        function ($scope, base64) {

            $scope.encoded = base64.encode('a string');
            $scope.decoded = base64.decode('YSBzdHJpbmc=');
    }]);

Base64Url Support

Commonly used for supporting JWS and JWT encodings, base64url encoding creates a URL safe output.

angular
    .module('someApp', ['utf8-base64'])
    .controller('someController', [

        '$scope', 'base64',
        function ($scope, base64) {

            $scope.encoded = base64.urlencode('a string');
            $scope.decoded = base64.urldecode('YSBzdHJpbmc');
    }]);

Versions

Version
0.0.5