0.2.1 • Published 11 years ago
hexurl v0.2.1
hexurl
Reduce the length of hex strings in URLs.
Getting Started
Install the module with: npm install hexurl
var hexurl = require('hexurl');
hexurl.encode('511c0c04a81280701c000001'); // "JGkB1-VHV70R0001"
hexurl.decode('JGkB1-VHV70R0001'); // "511c0c04a81280701c000001"
Documentation
Reduces the length of hex strings in URLs using 64 URL-safe characters. This is useful for shortening the length of MongoDB ObjectIds and other hashes.
License
Copyright (c) 2013 Emlyn Murphy
Licensed under the MIT license.