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
- Host: GitHub
- URL: https://github.com/snowplow-archive/base64-js
- Owner: snowplow-archive
- Archived: true
- Created: 2015-01-28T13:16:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-06T16:34:38.000Z (over 10 years ago)
- Last Synced: 2025-02-23T10:15:46.973Z (3 months ago)
- Language: JavaScript
- Homepage: http://snowplowanalytics.com
- Size: 148 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-2.0.txt
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