Sha256: fcb4180309765e3511df6ed4c7b16003c40bb03f13e29a703f93ba4af5503c2e
Contents?: true
Size: 410 Bytes
Versions: 27
Compression:
Stored size: 410 Bytes
Contents
var url = require("url") module.exports = toNerfDart /** * Maps a URL to an identifier. * * Name courtesy schiffertronix media LLC, a New Jersey corporation * * @param {String} uri The URL to be nerfed. * * @returns {String} A nerfed URL. */ function toNerfDart(uri) { var parsed = url.parse(uri) parsed.pathname = "/" delete parsed.protocol delete parsed.auth return url.format(parsed) }
Version data entries
27 entries across 20 versions & 3 rubygems