An open API service indexing awesome lists of open source software.

https://github.com/snowplow-archive/base64-js

Node.js module to handle base64 encoding arbitrary strings
https://github.com/snowplow-archive/base64-js

Last synced: about 1 month ago
JSON representation

Node.js module to handle base64 encoding arbitrary strings

Awesome Lists containing this project

README

        

# base64-js

[ ![Build Status] [travis-image] ] [travis]

## Overview

Node.js module to handle base64 encoding arbitrary strings. For use in the [Snowplow JavaScript Tracker][sjt] core.

## Usage:

```javascript
var b64 = require('snowplow-base64');
var encoded = b64.encodeBase64("(some string)");

// Uses URL-safe characters: "_" rather than "/" and "-" rather than "+"
var urlSafeEncoded = b64.encodeBase64UrlSafe("(some string)");
```

## Contributing quickstart

Assuming git, [Vagrant] [vagrant-install] and [VirtualBox] [virtualbox-install] installed:

```
host$ git clone https://github.com/snowplow/base64-js.git
host$ cd base64-js
host$ vagrant up && vagrant ssh
guest$ sudo npm install
```

## License

Licensed under the **[Apache License, Version 2.0] [license]** (the "License");
you may not use this software except in compliance with the License.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

[sjt]: https://github.com/snowplow/snowplow-javascript-tracker
[license]: http://www.apache.org/licenses/LICENSE-2.0
[travis-image]: https://travis-ci.org/snowplow/base64-js.png?branch=master
[travis]: http://travis-ci.org/snowplow/base64-js
[vagrant-install]: http://docs.vagrantup.com/v2/installation/index.html
[virtualbox-install]: https://www.virtualbox.org/wiki/Downloads