{"_id":"absolution","_rev":"39-612046ae70a4de7318fbc2f3822e6297","name":"absolution","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"absolution","version":"0.1.0","keywords":["url","urls","resolver","url","resolver","html","resolve","urls","in","html","rss","feed"],"author":{"name":"P'unk Avenue LLC"},"license":"MIT","_id":"absolution@0.1.0","maintainers":[{"name":"boutell","email":"boutell@boutell.com"}],"dist":{"shasum":"5ce6333327d2525d6f4d86f3b4d904b951c1bb99","tarball":"https://registry.npmjs.org/absolution/-/absolution-0.1.0.tgz","integrity":"sha512-mcO5+m3t8yZwTcdbyIogVdwe95GvI3iD/kDqOkw8AtVUaoRDo0EMtYohg866pBxd8P4loTyimXScM5d1H+U4Hg==","signatures":[{"sig":"MEYCIQCFoIO/iZNbwx/VCMbWbA8SBJlbOEAWFA4GQcU75DDDHwIhAN2jihUk1LAXqCZeF562AD2nmPaXU8MNuiTGCFzMLcf3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","readme":"# absolution\n\n<a href=\"http://apostrophenow.org/\"><img src=\"https://raw.github.com/punkave/absolution/master/logos/logo-box-madefor.png\" align=\"right\" /></a>\n\n`absolution` accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.\n\n`absolution` is not too picky about your HTML.\n\n## Requirements\n\n`absolution` is intended for use with Node. That's pretty much it. All of its npm dependencies are pure JavaScript. `absolution` is built on the excellent `htmlparser2` module.\n\n## How to use\n\n    npm install absolution\n\n    var absolution = require('absolution');\n\n    var dirty = '<a href=\"/foo\">Foo!</a>';\n    var clean = absolution(dirty, 'http://example.com');\n\n    // clean is now:\n    // <a href=\"http://example.com/foo\">Foo!</a>\n\nBoom!\n\n## Changelog\n\n0.1.0: initial release.\n\n## About P'unk Avenue and Apostrophe\n\n`absolution` was created at [P'unk Avenue](http://punkave.com) for use in Apostrophe, an open-source content management system built on node.js. If you like `absolution` you should definitely [check out apostrophenow.org](http://apostrophenow.org). Also be sure to visit us on [github](http://github.com/punkave).\n\n## Support\n\nFeel free to open issues on [github](http://github.com/punkave/absolution).\n\n<a href=\"http://punkave.com/\"><img src=\"https://raw.github.com/punkave/absolution/master/logos/logo-box-builtby.png\" /></a>\n\n","scripts":{"test":"mocha test/test.js"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/absolution.git","type":"git"},"_npmVersion":"1.2.18","description":"absolution accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.","directories":{},"dependencies":{"lodash":"~2.0.0","htmlparser2":"~3.3.0"},"readmeFilename":"README.md"},"0.2.0":{"name":"absolution","version":"0.2.0","keywords":["url","urls","resolver","url","resolver","html","resolve","urls","in","html","rss","feed"],"author":{"name":"P'unk Avenue LLC"},"license":"MIT","_id":"absolution@0.2.0","maintainers":[{"name":"boutell","email":"boutell@boutell.com"}],"homepage":"https://github.com/punkave/absolution","bugs":{"url":"https://github.com/punkave/absolution/issues"},"dist":{"shasum":"7a147e44d4e0b139448455417e9823819c969518","tarball":"https://registry.npmjs.org/absolution/-/absolution-0.2.0.tgz","integrity":"sha512-9L3+lO+g362DSfmAZL87rNbpFpObSrcoJFvraqJsA57mDza8rTKoS34WUj69WMtfhvaSh28w0TpPxmUxlq4pzQ==","signatures":[{"sig":"MEUCIQDoeaSeZiELPcfB2K7IW4jzRZAfte0+zgQJ5KV/elTYYQIgUX0TLE1171AhrmaSrEnUQ8HYE5ToID2XslUvNOwnnUM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","readme":"# absolution\n\n<a href=\"http://apostrophenow.org/\"><img src=\"https://raw.github.com/punkave/absolution/master/logos/logo-box-madefor.png\" align=\"right\" /></a>\n\n`absolution` accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.\n\n`absolution` is not too picky about your HTML.\n\n## Requirements\n\n`absolution` is intended for use with Node. That's pretty much it. All of its npm dependencies are pure JavaScript. `absolution` is built on the excellent `htmlparser2` module.\n\n## How to use\n\n    npm install absolution\n\n    var absolution = require('absolution');\n\n    var dirty = '<a href=\"/foo\">Foo!</a>';\n    var clean = absolution(dirty, 'http://example.com');\n\n    // clean is now:\n    // <a href=\"http://example.com/foo\">Foo!</a>\n\nBoom!\n\nIf you want to do further processing of each absolute URL, you can also pass a decorator function:\n\n    var clean = absolution(dirty, 'http://example.com', {\n      decorator: function(url) {\n        return 'http://mycoolthing.com?url=' + encodeURIComponent(url);\n      }\n    });\n\n## Changelog\n\n0.2.0: decorator option added.\n\n0.1.0: initial release.\n\n## About P'unk Avenue and Apostrophe\n\n`absolution` was created at [P'unk Avenue](http://punkave.com) for use in Apostrophe, an open-source content management system built on node.js. If you like `absolution` you should definitely [check out apostrophenow.org](http://apostrophenow.org). Also be sure to visit us on [github](http://github.com/punkave).\n\n## Support\n\nFeel free to open issues on [github](http://github.com/punkave/absolution).\n\n<a href=\"http://punkave.com/\"><img src=\"https://raw.github.com/punkave/absolution/master/logos/logo-box-builtby.png\" /></a>\n\n","scripts":{"test":"mocha test/test.js"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/absolution.git","type":"git"},"_npmVersion":"1.3.21","description":"absolution accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.","directories":{},"dependencies":{"lodash":"~2.0.0","htmlparser2":"~3.3.0"},"readmeFilename":"README.md"},"1.0.0":{"name":"absolution","version":"1.0.0","keywords":["url","urls","resolver","url","resolver","html","resolve","urls","in","html","rss","feed"],"author":{"name":"P'unk Avenue LLC"},"license":"MIT","_id":"absolution@1.0.0","maintainers":[{"name":"boutell","email":"boutell@boutell.com"}],"homepage":"https://github.com/punkave/absolution","bugs":{"url":"https://github.com/punkave/absolution/issues"},"dist":{"shasum":"8d37a6027b292fbfe168fd418c6131665e3b5095","tarball":"https://registry.npmjs.org/absolution/-/absolution-1.0.0.tgz","integrity":"sha512-XqBlkpg5vNtAzX6FH51nR9VHQTT/PFl87ZKwYl7Esx0QA1klcB2f/stLqLMC1v6uwO5saFPhjdsOTCE+IGiXRw==","signatures":[{"sig":"MEUCIBiPFjv2kLKU6NmALz5XaNOD05xLlaiv1Z+hzFAbjL0TAiEAkMkRrqUMi3671dJdk35fUpu7s+yCHvPm/nHwa5n98jM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","readme":"# absolution\n\n<a href=\"http://apostrophenow.org/\"><img src=\"https://raw.github.com/punkave/absolution/master/logos/logo-box-madefor.png\" align=\"right\" /></a>\n\n`absolution` accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.\n\n`absolution` is not too picky about your HTML.\n\n## Requirements\n\n`absolution` is intended for use with Node. That's pretty much it. All of its npm dependencies are pure JavaScript. `absolution` is built on the excellent `htmlparser2` module.\n\n## How to use\n\n    npm install absolution\n\n    var absolution = require('absolution');\n\n    var dirty = '<a href=\"/foo\">Foo!</a>';\n    var clean = absolution(dirty, 'http://example.com');\n\n    // clean is now:\n    // <a href=\"http://example.com/foo\">Foo!</a>\n\nBoom!\n\nIf you want to do further processing of each absolute URL, you can also pass a decorator function:\n\n    var clean = absolution(dirty, 'http://example.com', {\n      decorator: function(url) {\n        return 'http://mycoolthing.com?url=' + encodeURIComponent(url);\n      }\n    });\n\n## Changelog\n\n1.0.0: no new changes; declared stable as with the addition of the decorator option there's little left to do, and all tests are passing nicely.\n\n0.2.0: decorator option added.\n\n0.1.0: initial release.\n\n## About P'unk Avenue and Apostrophe\n\n`absolution` was created at [P'unk Avenue](http://punkave.com) for use in Apostrophe, an open-source content management system built on node.js. If you like `absolution` you should definitely [check out apostrophenow.org](http://apostrophenow.org). Also be sure to visit us on [github](http://github.com/punkave).\n\n## Support\n\nFeel free to open issues on [github](http://github.com/punkave/absolution).\n\n<a href=\"http://punkave.com/\"><img src=\"https://raw.github.com/punkave/absolution/master/logos/logo-box-builtby.png\" /></a>\n\n","scripts":{"test":"mocha test/test.js"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/absolution.git","type":"git"},"_npmVersion":"1.3.21","description":"absolution accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.","directories":{},"dependencies":{"lodash":"~2.0.0","htmlparser2":"~3.3.0"},"readmeFilename":"README.md"},"1.0.2":{"name":"absolution","version":"1.0.2","keywords":["url","urls","resolver","url","resolver","html","resolve","urls","in","html","rss","feed"],"author":{"name":"Apostrophe Technologies"},"license":"MIT","_id":"absolution@1.0.2","maintainers":[{"name":"alexbea","email":"alex.bea@gmail.com"},{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"austinstarin","email":"austin.starin@gmail.com"},{"name":"bgantick","email":"bgantick@gmail.com"},{"name":"bobclewell","email":"bobclewell@gmail.com"},{"name":"boutell","email":"tom@apostrophecms.com"},{"name":"breyell","email":"breyell@gmail.com"},{"name":"falkodev","email":"anthony@apostrophecms.com"},{"name":"grdunn","email":"grdunn@gmail.com"},{"name":"gregvanbrug","email":"greg.vanbrug@gmail.com"},{"name":"mtthwmnc","email":"matthew.mance@gmail.com"},{"name":"ngranahan","email":"namgranahan@gmail.com"},{"name":"stuartromanek","email":"stuart@punkave.com"}],"homepage":"https://github.com/apostrophecms/absolution#readme","bugs":{"url":"https://github.com/apostrophecms/absolution/issues"},"dist":{"shasum":"88954805007cda00686357bb43bcb45d4ea9feb2","tarball":"https://registry.npmjs.org/absolution/-/absolution-1.0.2.tgz","fileCount":6,"integrity":"sha512-qD7KhPIp4Un8qGCZVdmOs9IWUV3TJrdYsSHW6pZsKHavb6584PKd266UhbgY/HBWijqqlDr5xeNa2jNMQuGkJQ==","signatures":[{"sig":"MEQCIHvo4daffHQNsi2npyNWF4s5sJouHI/8hMJuEjJSSEWDAiBGFthn/C6DJM1pfwdyN1EaJkm8RkdeA8s6wBQ/Pr0QDA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe17sYCRA9TVsSAnZWagAAtxUQAIB7ZBszFXUNUUiqB5XE\nlMbr2xXkIIZ67p/EIEDS4U9vD1gJEr+qsqJ6EsQS1VriGrbvL06u3shC02wt\nDElibjFLC+7WYrRCWUH88wtVX78mPAUhwWmYW8hVp/P23f6KM1xduKx7Vw9e\nmz+iyfq84cMWI1OasaLqKhJe6FBafli5iX+OQMYkjbdN2634PLpsp7IXjBmm\n/kYLqFBI7jjdCjVajijfR55wYGvIYvMTzkg5P9fng8r0+KWo+QmJqBKzOJXH\nNVLiX5B8pHn4jd2TWjiZUg3uesREAPM+G3MPkr7n4kUnd3zNkhk2p24KKtoR\ncFnwDjJrVSHBUp2wjqS2IKnW8HzKyBIqqI27SdHLZRkZT4e3qYyq1LwGZcQv\nQGTmrfEi5Bjzj6vk24sWYCwr1fj1SInx/8uDfkNSv7TR7vImH054K9S+Felq\nhXe++aLtL+RQlJbLz5CfB8YFupJkqAyJWW8RmP7N6l4Dcps7C4+WGACa5nP2\nZrp37zC+Ms/S9bwPvylsT2DS6JATQl9A+cqEcOxNzjMx0RAPTXsBt9FV09oG\nz14F7ZMIkuXidf9oTFCcY9l1O85KUeQyfgFP6n97wErD+XuhGsSZyuZVa41p\nftg/+Jle0rIeObk7ZzEhhqeDA8QRYyaO4zI4f5Dl+8HLzzHw4QZZvpNLZvZs\nLLti\r\n=z6qu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"43589de620580872acfc2a7d0250c100ea5ce70d","scripts":{"test":"mocha"},"_npmUser":{"name":"alexbea","email":"alex.bea@gmail.com"},"repository":{"url":"git+https://github.com/apostrophecms/absolution.git","type":"git"},"_npmVersion":"6.14.5","description":"absolution accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.","directories":{},"_nodeVersion":"12.14.0","dependencies":{"lodash":"~4.17.15","htmlparser2":"~3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/absolution_1.0.2_1591196440203_0.6273663430447498","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"absolution","version":"1.0.3","keywords":["url","urls","resolver","url","resolver","html","resolve","urls","in","html","rss","feed"],"author":{"name":"Apostrophe Technologies"},"license":"MIT","_id":"absolution@1.0.3","maintainers":[{"name":"falkodev","email":"anthony@apostrophecms.com"},{"name":"triskuit","email":"tristan.krug@protonmail.com"},{"name":"mhiggins","email":"mhiggins.louis@gmail.com"},{"name":"bodonkey","email":"robert@robertmeans.net"},{"name":"etlaurent","email":"etldev@tuta.io"},{"name":"alexgilbert","email":"alex@apostrophecms.com"},{"name":"stuartromanek","email":"stuart@punkave.com"},{"name":"boutell","email":"tom@apostrophecms.com"},{"name":"alexbea","email":"abea@mailbox.org"},{"name":"gregvanbrug","email":"greg.vanbrug@gmail.com"},{"name":"valjed","email":"vjeudy@protonmail.com"},{"name":"romanek","email":"stuart+npm@apostrophecms.com"},{"name":"mtthwmnc","email":"matthew.mance@gmail.com"},{"name":"breyell","email":"breyell@gmail.com"}],"homepage":"https://github.com/apostrophecms/absolution#readme","bugs":{"url":"https://github.com/apostrophecms/absolution/issues"},"dist":{"shasum":"4e16949f8a68bec3ba957898d90823cba5612ca5","tarball":"https://registry.npmjs.org/absolution/-/absolution-1.0.3.tgz","fileCount":7,"integrity":"sha512-43TAUeF5LtsbAR88DIJh85j9PhhGoB9hpZSZHulmEbEIfMVPfSrwd/+1Fcdhwc/EvWj1Cln91GUorqZywkM/Jw==","signatures":[{"sig":"MEQCIFHc0cRFrH+ujItol766nzL34nDy0t1q+KcGX7V5LBKLAiBnmmqyQyxFeXrqvDrq7AzZ9weuKWUQrXWccPZuNM7cyg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6l/rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfkhAAgbhm9wdL7iZLanccwtx0irgPTYzgXjRdho+N85pSU/tLdBcZ\r\nIelAw0LcFmxtRR1NsCgUJMAcuVSrSCHuY8C80yEL0I/c+CyZ0JR4EY6BKSTG\r\nHTR3jg1EG8/Facw2kBO4434y6yWdkDoc16BjzBZ4OIufspaQKKZy8rN92DJG\r\n9vBI0y5qDwoZpVEuKtSsF5fGZMQuczigvHTWzWyFHmScLH9Plp1nuDWWO3/K\r\ndCHmFmrEYl+8aWruqa5407t1vRyrPFg0ODxzvTYF8LpZs4g/jCx3liNoV1dr\r\nx1wMbBelWTqoyNZkB4vRrdTBU54BvJtVK+gvcPo9vsb8ZbHlMC7dz3RpRQiz\r\nbKTfJjHSlOcUJuduEtnV5uDLFdIVPFMCZ21hvsJHTXpiKtTypUA+SgqhmfQE\r\n/cWQVAldXaJHi8R/R6ipl+o8jWoM+S5GlkP3zHohP8j8JnMjyFb1odAJxHsk\r\nz+RxXJws5U1XYq9X3XffmD6mYIshfny+2FFx3fUw6HGSzuGcFYh2GQtxsZGN\r\njP4XtSe9s35+rMThlGGWjfS8BU2sbNhAWr7YADN3+CzWrqy5FXOryWSwsKfe\r\nNVA38xcbJIQlqVA70kHCVOsAF82G0eoK6A0ubcch4/YWj/45W+TPUyGCjZih\r\nNd8KHYSzoy2V5MIVOwFK4+f6/vFcOnUhsdE=\r\n=51k0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"26834fb87f7c3892f278785f7ac3bca8a38bf7c8","scripts":{"test":"mocha"},"_npmUser":{"name":"boutell","email":"tom@apostrophecms.com"},"repository":{"url":"git+https://github.com/apostrophecms/absolution.git","type":"git"},"_npmVersion":"8.19.2","description":"absolution accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"lodash":"~4.17.15","htmlparser2":"~3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/absolution_1.0.3_1676304363008_0.08895387492358653","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"absolution","version":"1.0.4","keywords":["url","urls","resolver","url","resolver","html","resolve","urls","in","html","rss","feed"],"author":{"name":"Apostrophe Technologies"},"license":"MIT","_id":"absolution@1.0.4","maintainers":[{"name":"falkodev","email":"anthony@apostrophecms.com"},{"name":"triskuit","email":"tristan.krug@protonmail.com"},{"name":"bodonkey","email":"robert@robertmeans.net"},{"name":"etlaurent","email":"etldev@tuta.io"},{"name":"alexgilbert","email":"alex@apostrophecms.com"},{"name":"stuartromanek","email":"stuart@punkave.com"},{"name":"boutell","email":"tom@apostrophecms.com"},{"name":"alexbea","email":"abea@mailbox.org"},{"name":"gregvanbrug","email":"greg.vanbrug@gmail.com"},{"name":"valjed","email":"vjeudy@protonmail.com"},{"name":"romanek","email":"stuart+npm@apostrophecms.com"},{"name":"mtthwmnc","email":"matthew.mance@gmail.com"},{"name":"breyell","email":"breyell@gmail.com"}],"homepage":"https://github.com/apostrophecms/absolution#readme","bugs":{"url":"https://github.com/apostrophecms/absolution/issues"},"dist":{"shasum":"c45ff714bce8120e114cf4020208f0fc7d83a28a","tarball":"https://registry.npmjs.org/absolution/-/absolution-1.0.4.tgz","fileCount":7,"integrity":"sha512-340ipA4wHcCmPu3zZ2o6r4YIJXO1d44DHB81ik+0rmGOSjB9TpPB5pTRNAbn6grWLa2Ju5DWSPFOGNaT8z7HfQ==","signatures":[{"sig":"MEYCIQCu/yGm+fNoSlND4AQ+Dpt0gBu1fkwyMy7ozizBlRQ3rQIhALNQmBnjkOhiCes8+FW44cEz1l7FuX0N3EVLgzuLR3bh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15498},"main":"index.js","gitHead":"7873a1e73aa57c7829d836d75b21d1c08a0d4210","scripts":{"test":"mocha"},"_npmUser":{"name":"boutell","email":"tom@apostrophecms.com"},"repository":{"url":"git+https://github.com/apostrophecms/absolution.git","type":"git"},"_npmVersion":"8.19.2","description":"absolution accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"lodash":"~4.17.15","htmlparser2":"~3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/absolution_1.0.4_1685116224420_0.6672253628406515","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"absolution","version":"1.1.0","keywords":["url","urls","resolver","url","resolver","html","resolve","urls","in","html","rss","feed"],"author":{"name":"Apostrophe Technologies"},"license":"MIT","_id":"absolution@1.1.0","maintainers":[{"name":"itsrogil","email":"romain.gilles1@gmail.com"},{"name":"triskuit","email":"tristan.krug@protonmail.com"},{"name":"bodonkey","email":"robert@robertmeans.net"},{"name":"etlaurent","email":"etldev@tuta.io"},{"name":"alexgilbert","email":"alex@apostrophecms.com"},{"name":"stuartromanek","email":"stuart@punkave.com"},{"name":"boutell","email":"tom@apostrophecms.com"},{"name":"alexbea","email":"abea@mailbox.org"},{"name":"gregvanbrug","email":"greg.vanbrug@gmail.com"},{"name":"valjed","email":"vjeudy@protonmail.com"},{"name":"romanek","email":"stuart+npm@apostrophecms.com"},{"name":"mtthwmnc","email":"matthew.mance@gmail.com"},{"name":"breyell","email":"breyell@gmail.com"}],"homepage":"https://github.com/apostrophecms/absolution#readme","bugs":{"url":"https://github.com/apostrophecms/absolution/issues"},"dist":{"shasum":"764a881298eafb8bf917b51bbee68cf02595b3ea","tarball":"https://registry.npmjs.org/absolution/-/absolution-1.1.0.tgz","fileCount":7,"integrity":"sha512-TR6eNNq9PTDi8/kIGditNkzfIZSNdL+9zc6gIkp+Ox0c9oDE/EelFgyQ2DIT/9z4HpsW0M9klihKTrssmHhQ4g==","signatures":[{"sig":"MEYCIQCPdOTSUev3JPUqi8EXqcao7ea5Lc9fnpuprDvRsAX6zwIhAOz9Fsmz/CbTID1w37MI7sES9bLOUg15tQw5giZCE2fT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18954},"main":"index.js","gitHead":"da37efcbbb97d6151a184385d91fb4544e705158","scripts":{"test":"mocha"},"_npmUser":{"name":"boutell","email":"tom@apostrophecms.com"},"repository":{"url":"git+https://github.com/apostrophecms/absolution.git","type":"git"},"_npmVersion":"9.5.0","description":"absolution accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.","directories":{},"_nodeVersion":"18.15.0","dependencies":{"lodash":"~4.17.15","htmlparser2":"~3.3.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/absolution_1.1.0_1706192703003_0.3330437939609825","host":"s3://npm-registry-packages"}}},"time":{"created":"2013-09-19T19:19:38.011Z","modified":"2026-01-26T19:09:19.974Z","0.1.0":"2013-09-19T19:19:39.165Z","0.2.0":"2013-12-31T19:42:04.279Z","1.0.0":"2014-01-05T00:43:34.084Z","1.0.2":"2020-06-03T15:00:40.337Z","1.0.3":"2023-02-13T16:06:03.160Z","1.0.4":"2023-05-26T15:50:24.658Z","1.1.0":"2024-01-25T14:25:03.167Z"},"bugs":{"url":"https://github.com/apostrophecms/absolution/issues"},"author":{"name":"Apostrophe Technologies"},"license":"MIT","homepage":"https://github.com/apostrophecms/absolution#readme","keywords":["url","urls","resolver","url","resolver","html","resolve","urls","in","html","rss","feed"],"repository":{"url":"git+https://github.com/apostrophecms/absolution.git","type":"git"},"description":"absolution accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.","maintainers":[{"email":"alex@apostrophecms.com","name":"alexgilbert"},{"email":"tom@apostrophecms.com","name":"boutell"},{"email":"stuart+npm@apostrophecms.com","name":"romanek"},{"email":"robert.means1969+apostrophecms@gmail.com","name":"bodonkey"},{"email":"greg.vanbrug@gmail.com","name":"gregvanbrug"},{"email":"stuart@punkave.com","name":"stuartromanek"},{"email":"abea@mailbox.org","name":"alexbea"},{"email":"matthew.mance@gmail.com","name":"mtthwmnc"},{"email":"breyell@gmail.com","name":"breyell"},{"email":"vjeudy@protonmail.com","name":"valjed"}],"readme":"# absolution\n\n<a href=\"http://apostrophenow.org/\"><img src=\"https://raw.github.com/punkave/absolution/master/logos/logo-box-madefor.png\" align=\"right\" /></a>\n\n`absolution` accepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.\n\n`absolution` is not too picky about your HTML.\n\n## Requirements\n\n`absolution` is intended for use with Node. That's pretty much it. All of its npm dependencies are pure JavaScript. `absolution` is built on the excellent `htmlparser2` module.\n\n## How to use\n\n`npm install absolution`\n\n```javascript\nvar absolution = require('absolution');\n\nvar dirty = '<a href=\"/foo\">Foo!</a>';\nvar clean = absolution(dirty, 'http://example.com');\n\n// clean is now:\n// <a href=\"http://example.com/foo\">Foo!</a>\n```\n\nBoom!\n\nIf you want to do further processing of each absolute URL, you can also pass a decorator function:\n\n```javascript\nvar clean = absolution(dirty, 'http://example.com', {\n  decorator: function(url) {\n    return 'http://mycoolthing.com?url=' + encodeURIComponent(url);\n  }\n});\n```\n\n## Having issues with SVG markup?\n\n> How can I keep SVG self-closing tags intact?\n\nYou can add custom self-closing tags via the `selfClosing` option:\n\n```javascript\nvar absolution = require('absolution');\n\nvar dirty = `\n  <svg width=\"100\" height=\"100\" xmlns=\"http://www.w3.org/2000/svg\">\n    <a href=\"/docs/Web/SVG/Element/circle\">\n      <circle cx=\"50\" cy=\"40\" r=\"35\"/>\n    </a>\n    <path d=\"M 10 10 H 90 V 90 H 10 L 10 10\"/>\n    <circle cx=\"10\" cy=\"90\" r=\"2\" fill=\"red\"/>\n  </svg>\n`;\nvar clean = absolution(dirty, 'http://example.com', {\n  selfClosing: [\n    // keep default `selfClosing` tags:\n    ...absolution.defaults.selfClosing,\n\n    // add custom tags:\n    'path',\n    'circle'\n  ]\n});\n\n// clean is now:\n// <svg width=\"100\" height=\"100\" xmlns=\"http://www.w3.org/2000/svg\">\n//   <a href=\"http://example.com/docs/Web/SVG/Element/circle\">\n//     <circle cx=\"50\" cy=\"40\" r=\"35\" />\n//   </a>\n//   <path d=\"M 10 10 H 90 V 90 H 10 L 10 10\" />\n//   <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"red\" />\n// </svg>\n```\n\n## Changelog\n\n1.0.2: Updates to lodash v4 and mocha v7 for security vulnerability fixes. Also update package metadata.\n\n1.0.0: no new changes; declared stable as with the addition of the decorator option there's little left to do, and all tests are passing nicely.\n\n0.2.0: decorator option added.\n\n0.1.0: initial release.\n\n## About P'unk Avenue and Apostrophe\n\n`absolution` was created at [P'unk Avenue](http://punkave.com) for use in Apostrophe, an open-source content management system built on node.js. If you like `absolution` you should definitely [check out apostrophenow.org](http://apostrophenow.org). Also be sure to visit us on [github](http://github.com/punkave).\n\n## Support\n\nFeel free to open issues on [github](http://github.com/punkave/absolution).\n\n<a href=\"http://punkave.com/\"><img src=\"https://raw.github.com/punkave/absolution/master/logos/logo-box-builtby.png\" /></a>\n\n","readmeFilename":"README.md","users":{"jmm23":true,"allain":true}}