Skip to content

Base64 encoding/decoding library for JavaScript.

Notifications You must be signed in to change notification settings

chick307/base64codec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base64codec.js Build Status

Base64 encoding/decoding library for JavaScript.

Installation

npm

$ npm install base64codec

bower

$ bower install base64codec

jam

$ jam install base64codec

Usage

NodeJS

var base64codec = require('base64codec');
base64codec.encode('\0\0\0'); // -> 'AAAA'
base64codec.decode('AAAA'); // -> '\0\0\0'

RequireJS

require(['base64codec'], function(base64codec) {
	base64codec.encode('\0\0\0'); // -> 'AAAA'
	base64codec.decode('AAAA'); // -> '\0\0\0'
});

web browsers

<script src="base64codec.js"></script>
<script>
	window.base64codec.encode('\0\0\0'); // -> 'AAAA'
	window.base64codec.decode('AAAA'); // -> '\0\0\0'
</script>

About

Base64 encoding/decoding library for JavaScript.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •