• Stars
    star
    823
  • Rank 55,417 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 13 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Base64 encoding/decoding in pure JS

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

More Repositories

1

gzip-js

GZIP implemented in pure JavaScript
JavaScript
424
star
2

simple-pam

Basic PAM module and test application
C
176
star
3

rtsp

rtsp implementation in Go
Go
113
star
4

tar-js

Tar implemented in the browser
JavaScript
86
star
5

pam-http

Simple pam module that uses HTTPS authentication
C
59
star
6

node-coordinator

Converts between GPS coordinate systems
JavaScript
38
star
7

node-filesync

Synchronizes files from client to server using node for both client and server
JavaScript
30
star
8

crc32

Crc32 implemented in JavaScript
JavaScript
24
star
9

tar-async

Asynchronous Tar implemented in node
JavaScript
19
star
10

arduino-tcp-server

Arduino- TCP server that controls a servo with a WebSocket-like API
Arduino
9
star
11

eventhub

Message passing in node with EventEmitters
JavaScript
8
star
12

luna

Go library for interfacing with Lua
Go
8
star
13

cast

Attempts to solve the problem of unintuitive data types in JavaScript
JavaScript
6
star
14

dart-cookies

Dart cookie parser
Dart
5
star
15

updating-server

Self-updating server that runs as a daemon through systemd
JavaScript
5
star
16

toDataURL

Download practically anything using only browser-side JS
JavaScript
5
star
17

libcanvas

Adds convenience methods to aid in drawing to the HTML5 canvas
JavaScript
4
star
18

mgo-rest

REST interface for MongoDB using the mgo library
Go
4
star
19

construct

Calls a constructor with an arbitrary number of arguments.
JavaScript
4
star
20

artichoke

HTTP framework for Go (based on connect for Nodejs)
Go
4
star
21

mediatags

Generates JSON from ID3 tags
C++
4
star
22

gotables

Simple replacement for iptables for port forwarding
Go
3
star
23

atomicparsley

Fork from Bitbucket that includes JSON output support
C++
3
star
24

node-intercept

Connect module that intercepts ServerResponse calls
JavaScript
3
star
25

node-squish

Squish your outputs using whatever compression you desire
JavaScript
3
star
26

nutrient-database-parser

Parses the ASCII values in the ARS branch of the USDA
JavaScript
3
star
27

universal-turing-machines

Implementations of universal turing machines
JavaScript
3
star
28

gamepad-api-polyfill

HTML5 Gamepad API polyfill
JavaScript
2
star
29

task-warrior-am

Task Warrior mobile app using inthe.am API
JavaScript
2
star
30

filesync-client

Client for filesync, a file-synchronization daemon built on nodejs
JavaScript
2
star
31

stein

The best way to consume TAP
Go
2
star
32

tcpmux

Run multiple TCP services on the same port
Go
2
star
33

beatgammit.github.com

1
star
34

cs360contacts

Presentation about Google App Engine
JavaScript
1
star
35

cs240

All of my projects for CS240
C++
1
star
36

viaduct

C WAMP library targeted at embedded platforms
C
1
star
37

sandbox

Sandbox for errors, proofs of concept, and other cool stuffs
Go
1
star
38

semver

Semantic versions in Go
Go
1
star
39

make-me-a-sandwich

http://xkcd.com/149/
Python
1
star
40

dpm

D package manager, based on node's npm
D
1
star
41

wopi-rs

Rust implementation of MS-WOPI
Rust
1
star
42

amortization

Simple CLI application for calculating amortization table
Rust
1
star
43

json-d

JSON parser written in D
D
1
star
44

netlion

Graphical network debugging tool
Rust
1
star
45

jscolor

Fork of http://jscolor.com that detects if it's needed
JavaScript
1
star
46

cs236-labs

My solution to the labs in my CS 236 class at BYU
Java
1
star