base64-url
Base64 encode, decode, escape and unescape for URL applications
Last updated 6 months ago by quim .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install base64-url 
SYNC missed versions from official npm registry.

base64-url

Base64 encode, decode, escape and unescape for URL applications.

Build StatusCoverage StatusISC LicenseNodeJS

JavaScript Style Guide

API

const base64url = require('base64-url')

examples


base64url.encode('Node.js is awesome.')
// returns Tm9kZS5qcyBpcyBhd2Vzb21lLg

base64url.decode('Tm9kZS5qcyBpcyBhd2Vzb21lLg')
// returns Node.js is awesome.

base64url.escape('This+is/goingto+escape==')
// returns This-is_goingto-escape

base64url.unescape('This-is_goingto-escape')
// returns This+is/goingto+escape==

//
// setting a different encoding 
//

base64url.encode(string to encode, encoding)
base64url.decode(string to decode, encoding)

ISC License (ISC)

Alternatives

Current Tags

  • 2.3.3                                ...           latest (6 months ago)

15 Versions

  • 2.3.3                                ...           6 months ago
  • 2.3.2                                ...           a year ago
  • 2.2.2                                ...           a year ago
  • 2.2.1                                ...           a year ago
  • 2.2.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.3.3                                ...           4 years ago
  • 1.3.2                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 29
This Week 29
This Month 2,860
Last Day 53
Last Week 1,605
Last Month 7,272
Dependencies (0)
None
Dev Dependencies (5)
Dependents (185)

Copyright 2014 - 2016 © taobao.org |