{"_id":"cache-breaker","_rev":"10-606c2e1120c6e375ec61dcb44b0a4b65","name":"cache-breaker","description":"Cache Breaking Tasks","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"cache-breaker","version":"0.0.1","description":"Cache Breaking Tasks","main":"index.js","scripts":{"test":"mocha test/specs"},"repository":{"type":"git","url":"https://github.com/shakyShane/cache-breaker"},"keywords":["cache","bust","break"],"author":{"name":"Shane Osbourne"},"license":"MIT","bugs":{"url":"https://github.com/shakyShane/cache-breaker/issues"},"homepage":"https://github.com/shakyShane/cache-breaker","devDependencies":{"chai":"^1.9.1","mocha":"^1.18.2","gulp-util":"^2.2.14","gulp":"^3.6.2","gulp-jshint":"^1.5.5","sinon":"^1.9.1"},"_id":"cache-breaker@0.0.1","dist":{"shasum":"0643a119403df72df55b9319c35c8c543b2b4351","tarball":"https://registry.npmjs.org/cache-breaker/-/cache-breaker-0.0.1.tgz","integrity":"sha512-p061uQqVgwq4T9fr4pdob2yb+LaIpWuwjh5ixOfwNw20AiYTxYr+a2YuL8WbB3Q9WwJZEP6bHPJ35OUD3a9hog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGiB8MeIccyoSIshXT57+LXYwXMcvUYcmOfcETSo9sPHAiAegkeQXBYQNsCTSgH7sX/ymMHQgsn+9IDBVymQytwDJA=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shane.osbourne8@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shane.osbourne8@gmail.com"}]},"0.0.2":{"name":"cache-breaker","version":"0.0.2","description":"Cache Breaking Tasks","main":"index.js","scripts":{"test":"mocha test/specs"},"repository":{"type":"git","url":"https://github.com/shakyShane/cache-breaker"},"keywords":["cache","bust","break"],"author":{"name":"Shane Osbourne"},"license":"MIT","bugs":{"url":"https://github.com/shakyShane/cache-breaker/issues"},"homepage":"https://github.com/shakyShane/cache-breaker","dependencies":{"lodadash":"2.2.1"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.18.2","gulp-util":"^2.2.14","gulp":"^3.6.2","gulp-jshint":"^1.5.5","sinon":"^1.9.1"},"_id":"cache-breaker@0.0.2","dist":{"shasum":"c9c9c5f6dde51896b31a6f3839bc4a3379687dd8","tarball":"https://registry.npmjs.org/cache-breaker/-/cache-breaker-0.0.2.tgz","integrity":"sha512-tb/bJh3MSViI1bv9Db2HiZuJDN5vdqL0RK2xscfNDpv95WrLKEPNaDOaexD91LU02Z5aaYloN0mPWE9LNdEnvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUZju/LP7BuOe4z2+0AO6Qct/+Zv7VWJXSgRlaWOOL+AiAfw6SukxEUqM02t0yT7AahMvSMr5E8YmH/t6iLsMObEQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shane.osbourne8@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shane.osbourne8@gmail.com"}]},"0.0.3":{"name":"cache-breaker","version":"0.0.3","description":"Cache Breaking Tasks","main":"index.js","scripts":{"test":"mocha test/specs"},"repository":{"type":"git","url":"https://github.com/shakyShane/cache-breaker"},"keywords":["cache","bust","break"],"author":{"name":"Shane Osbourne"},"license":"MIT","bugs":{"url":"https://github.com/shakyShane/cache-breaker/issues"},"homepage":"https://github.com/shakyShane/cache-breaker","dependencies":{"lodash":"2.2.1"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.18.2","gulp-util":"^2.2.14","gulp":"^3.6.2","gulp-jshint":"^1.5.5","sinon":"^1.9.1"},"_id":"cache-breaker@0.0.3","dist":{"shasum":"2182bbcc1404f4bb70d51a50f8b1fd93d268f9d3","tarball":"https://registry.npmjs.org/cache-breaker/-/cache-breaker-0.0.3.tgz","integrity":"sha512-JJC63t2zD3fHPqkjHMqc0ctQ8p9Fh0HOoLVitvh87cc+jddfj8XNjAsDjcdY0MqTfXAQ9Ruf5yj0+pkp3ykeJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfo2IeuMpUHNuIWcyu905Gts3DYLd0nrx5d0JSwmhY9AIgTip4MvZLuk/WodAjYWL/7CleH+TKWdcVCfMrAWLuAn0="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shane.osbourne8@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shane.osbourne8@gmail.com"}]},"0.0.4":{"name":"cache-breaker","version":"0.0.4","description":"Cache Breaking Tasks","main":"index.js","scripts":{"test":"mocha test/specs"},"repository":{"type":"git","url":"https://github.com/shakyShane/cache-breaker"},"keywords":["cache","bust","break"],"author":{"name":"Shane Osbourne"},"license":"MIT","bugs":{"url":"https://github.com/shakyShane/cache-breaker/issues"},"homepage":"https://github.com/shakyShane/cache-breaker","dependencies":{"lodash":"2.2.1"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.18.2","gulp-util":"^2.2.14","gulp":"^3.6.2","gulp-jshint":"^1.5.5","sinon":"^1.9.1"},"_id":"cache-breaker@0.0.4","dist":{"shasum":"eb2aa3fbd7d7252beb8181318e61f25983d075e5","tarball":"https://registry.npmjs.org/cache-breaker/-/cache-breaker-0.0.4.tgz","integrity":"sha512-LPJldJ74iN43nAZl/IRRc9SKtlKymhftnlROHXsUmCLjM/yZHO17zDICoAHyluxmUSkI8A3hrFlR6cDsWwQ95Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAZXlDHcHmm37c+o6HuUXRBpE4URLfAls6W1kbTVFu3YAiAESq4UaBDlx1GN4PDJLXqp+brNCr/hv40aZCo8+tbnFQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"shakyshane","email":"shane.osbourne8@gmail.com"},"maintainers":[{"name":"shakyshane","email":"shane.osbourne8@gmail.com"}]}},"readme":"#Cache Breaking Tasks [![Build Status](https://travis-ci.org/shakyShane/cache-breaker.svg?branch=master)](https://travis-ci.org/shakyShane/cache-breaker)\n\n**Note: This modules does nothing with the file system, that means you'll have to read/write files yourself, or wait for\nthe Grunt & Gulp Plugins**\n\n\n##Install\n\n```\nnpm install cache-breaker\n```\n\n##Use in project\n\n```\nvar cacheBreaker = require(\"cache-breaker\");\n```\n\n###Usage Examples\n\n**Append a timestamp as query string**\n\n```js\nvar string   = '<link href=\"/style.css\" /><link href=\"/style2.css\" />';\n\ncacheBreaker.breakCache(string, ['style.css', 'style2.css']);\n\n// output\n// <link href=\"/style.css?rel=23452341\" /><link href=\"/style2.css?rel=23452341\" />\n\n```\n\n**Append a timestamp in the filename**\n\n```js\nvar string   = '<link href=\"/style.css\" />';\n\ncacheBreaker.breakCache(string, 'style.css', {position: 'filename'});\n\n// output\n// <link href=\"/style.56432352.css\" />\n\n```\n\n\n**Overwrite an exiting timestamp**\n\nUse this when you have rewrite rules in place.\n\n```js\nvar string   = '<link href=\"/style.2452345.css\" />';\n\ncacheBreaker.breakCache(string, 'style.*.css', {position: 'overwrite'});\n\n// output\n// <link href=\"/style.56432352.css\" />\n\n```\n\n##TODO\n\n- [ ] Grunt Plugin\n- [ ] Gulp Plugin\n- [x] Accept file src for creating MD5 hash\n- [x] Allow user-specified string in place of timestamp","maintainers":[{"name":"shakyshane","email":"shane.osbourne8@gmail.com"}],"time":{"modified":"2022-06-13T05:23:07.271Z","created":"2014-04-29T08:02:56.415Z","0.0.1":"2014-04-29T08:02:56.415Z","0.0.2":"2014-04-30T18:48:28.455Z","0.0.3":"2014-04-30T18:53:33.984Z","0.0.4":"2014-05-01T06:20:59.786Z"},"homepage":"https://github.com/shakyShane/cache-breaker","keywords":["cache","bust","break"],"repository":{"type":"git","url":"https://github.com/shakyShane/cache-breaker"},"author":{"name":"Shane Osbourne"},"bugs":{"url":"https://github.com/shakyShane/cache-breaker/issues"},"license":"MIT","readmeFilename":"readme.md"}