mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 20:40:07 +02:00
update packages to latest version
This commit is contained in:
23
node_modules/npm/lib/config/nerf-dart.js
generated
vendored
Normal file
23
node_modules/npm/lib/config/nerf-dart.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
delete parsed.protocol
|
||||
delete parsed.auth
|
||||
delete parsed.query
|
||||
delete parsed.search
|
||||
delete parsed.hash
|
||||
|
||||
return url.resolve(url.format(parsed), ".")
|
||||
}
|
Reference in New Issue
Block a user