1 var url = require("url")
3 module.exports = toNerfDart
6 * Maps a URL to an identifier.
8 * Name courtesy schiffertronix media LLC, a New Jersey corporation
10 * @param {String} uri The URL to be nerfed.
12 * @returns {String} A nerfed URL.
14 function toNerfDart(uri) {
15 var parsed = url.parse(uri)
16 delete parsed.protocol
22 return url.resolve(url.format(parsed), ".")