{"_id":"@jimdo/md5-loader","_rev":"49-6aa96a7fef81739eef45a5949b88a72f","name":"@jimdo/md5-loader","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.1":{"name":"@jimdo/md5-loader","version":"0.0.1","author":"","license":"MIT","_id":"@jimdo/md5-loader@0.0.1","maintainers":[{"name":"jimnpm","email":"hannes.diercks+jimnpm@jimdo.com"}],"dist":{"shasum":"80aa4d5276bde462414eb0926a2ef116324c272a","tarball":"https://registry.npmjs.org/@jimdo/md5-loader/-/md5-loader-0.0.1.tgz","integrity":"sha512-BpeZsWJCSMuRbkmigsTW9n0NrvVsKKak9gfobTh0sQaVDQGEyNkJc1alJzzEl5L99dql84VsvAPg62zq7ILuQg==","signatures":[{"sig":"MEUCIQDZi2j5feVkvmdEGjujo9ISF3epHXunx1B5Irwuo7/CWQIga94KNFnjOMmUiVwlECAnt0Kn7yPuUgldXk1pQgbMTUY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"80aa4d5276bde462414eb0926a2ef116324c272a","gitHead":"10f22262648ce06b64206ab866bf9b7d2f1d0f1a","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"jimnpm","email":"hannes.diercks+jimnpm@jimdo.com"},"_npmVersion":"3.10.5","description":"returns md5 hash of a specified path","directories":{},"_nodeVersion":"5.9.0","dependencies":{"tar":"2.2.1","fstream":"1.0.10","loader-utils":"0.2.15"},"_npmOperationalInternal":{"tmp":"tmp/md5-loader-0.0.1.tgz_1468941188993_0.7856825527269393","host":"packages-12-west.internal.npmjs.com"}},"0.1.0":{"name":"@jimdo/md5-loader","version":"0.1.0","author":"","license":"MIT","_id":"@jimdo/md5-loader@0.1.0","maintainers":[{"name":"jimnpm","email":"hannes.diercks+jimnpm@jimdo.com"},{"name":"p0wl","email":"paulmoelders@gmail.com"},{"name":"xiphe","email":"npm@xiphe.net"}],"dist":{"shasum":"723ffceade8c76d85e40acedd6b3402018b42e0c","tarball":"https://registry.npmjs.org/@jimdo/md5-loader/-/md5-loader-0.1.0.tgz","integrity":"sha512-Hjqpnx/1uLnCEz0+bix32kRpyP5cDgoaWlbUDZ8qI4OLdcrTmxt25cQcyPv84AEbOtAscbK3Zw5pxuBcoHWi6g==","signatures":[{"sig":"MEUCIHqt3LMlEDfm0QA+bSqcToLLDH+LgFPLCSOl9eebrO+QAiEA3+H4i8BusgiPguyyHv3fPkuhyYlb4iwVf+sRfg13Ghc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"723ffceade8c76d85e40acedd6b3402018b42e0c","gitHead":"038e953ef65245cd35bc30f6f9198492ae114a13","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"jimnpm","email":"hannes.diercks+jimnpm@jimdo.com"},"_npmVersion":"3.10.5","description":"returns md5 hash of a specified path","directories":{},"_nodeVersion":"5.9.0","dependencies":{"lucy-dirsum":"0.1.1","loader-utils":"0.2.15"},"_npmOperationalInternal":{"tmp":"tmp/md5-loader-0.1.0.tgz_1469001111526_0.8553382903337479","host":"packages-16-east.internal.npmjs.com"}},"0.1.1":{"name":"@jimdo/md5-loader","version":"0.1.1","author":"","license":"MIT","_id":"@jimdo/md5-loader@0.1.1","maintainers":[{"name":"jimnpm","email":"hannes.diercks+jimnpm@jimdo.com"},{"name":"p0wl","email":"paulmoelders@gmail.com"},{"name":"xiphe","email":"npm@xiphe.net"}],"dist":{"shasum":"60605a9709d98f457ab0adfc26792a5dcda28009","tarball":"https://registry.npmjs.org/@jimdo/md5-loader/-/md5-loader-0.1.1.tgz","integrity":"sha512-jrSd3d9itnCMEZ3pvS0OjIIAl67VNtDWPuhaKX6rurK0RwicIAd7b6ULrREQ/OAvX8Om/fzED8ae+znm8RLU9w==","signatures":[{"sig":"MEUCIQC+2Eiz6PycWrmJh5HOBipC5fP0ePXoYbZlCaZJW9K61AIgNPnpinMXmhhZRGU98pU8EBTTC/8tkize5dXh23d4YUo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"60605a9709d98f457ab0adfc26792a5dcda28009","gitHead":"cf1bea12e723e0d5db9b41881dbad1103913b014","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"jimnpm","email":"hannes.diercks+jimnpm@jimdo.com"},"_npmVersion":"3.10.5","description":"returns md5 hash of a specified path","directories":{},"_nodeVersion":"5.9.0","dependencies":{"lucy-dirsum":"0.1.1","loader-utils":"0.2.15"},"_npmOperationalInternal":{"tmp":"tmp/md5-loader-0.1.1.tgz_1469002083783_0.43061132403090596","host":"packages-16-east.internal.npmjs.com"}},"0.1.2":{"name":"@jimdo/md5-loader","version":"0.1.2","author":{"name":"Tim Sebastian @timse"},"license":"MIT","_id":"@jimdo/md5-loader@0.1.2","maintainers":[{"name":"jimnpm","email":"hannes.diercks+jimnpm@jimdo.com"},{"name":"p0wl","email":"paulmoelders@gmail.com"},{"name":"xiphe","email":"npm@xiphe.net"}],"dist":{"shasum":"8164b4a9ff75d9154e1eaec2ca362a9c6f3a8395","tarball":"https://registry.npmjs.org/@jimdo/md5-loader/-/md5-loader-0.1.2.tgz","integrity":"sha512-d4NA2OvrCOMKAv6UkyzLYuL7MyIV3QGqmapcA4Zd3q7Zml/VR0h+lkL4FLfrfpYIJzhHOvAwkC4omTR41jDGAw==","signatures":[{"sig":"MEQCIA1G2wjTvw4VTOMWG9tTCZLxgFQ2NHEAvQg+E6rZFghiAiBn2p8eG8/8sc0gFmyPFHvx/oVr1c40RKs9xfdL+GsLGA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2MvzCRA9TVsSAnZWagAAuKcP/3Ed8G2S99k6AyyEOp2M\nLUbDpUpPMcDI8o8vwQLxd65erJx4jcalnDpJ5neu5SaS/vlYlYGoPt+J8dcE\n9JAkfoQlxlIxgR0CjJhlt6wqnFjjn5yxknCoFkbs5bmcqHIRJ0qL5JbItboV\nIQ6dwWjaOCQwN2YJ27Pj0OlvSOz+xUxdvrYYWGPVPB/ZMMCIiBKGkU8lfQ2u\nRvHxr9HsAszMmATkHf9xAp+mdp+Kj/S8uHarwSnhGPnbOd3TjT3u7uaW5rF8\noqOJ8B/RW3/ipJN9YN/qqrtc53cxwTSJqwfxUwpzmkxt6QRuE/fsjAG6oFYV\nJS/mbDoxjSbJ88EXADDSLCMJ4j63fMJ0bueJN2KeJzKppg6UX0JtiFpKPSAK\nLQw13rM0s8+i15zVgLoDixFzT5ZsvOkBoP1XyaTDb8ASaTDakmt/tYC+OFyM\nkI1VbXwqO2Kq/bQDIQHIDO7g9TSnl35qVX5Kf0gsOcoopEe9pWKPTxwytx2P\nA2/qiQzS/nts2GfqP0oPk1LQABJo2v0HlzfcQxTKI7xvwZSNy2ze6ERizav6\neE+RaaBhSc6kJY2wTw7uk+I86tp70jj5gEClc8jPLpZ9CBUriMa/v2jOSgQ1\nUVNg0Nnw2ozE+bMox56Zh4XnSXdksC0KxzaMYgUcMEaHBZQCva8gReebAXb2\nkqNX\r\n=JQrQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":".","_shasum":"8164b4a9ff75d9154e1eaec2ca362a9c6f3a8395","gitHead":"d9e2d2e14cd06ddc0bd737304277998e28b310e7","scripts":{},"_npmUser":{"name":"jimnpm","email":"hannes.diercks+jimnpm@jimdo.com"},"_npmVersion":"3.10.5","description":"returns md5 hash of a specified path","directories":{},"_nodeVersion":"5.9.0","dependencies":{"lucy-dirsum":"0.1.1","loader-utils":"0.2.15"},"_npmOperationalInternal":{"tmp":"tmp/md5-loader-0.1.2.tgz_1469002290542_0.6788073482457548","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-07-19T15:13:10.829Z","modified":"2024-10-09T12:50:10.958Z","0.0.1":"2016-07-19T15:13:10.829Z","0.1.0":"2016-07-20T07:51:52.790Z","0.1.1":"2016-07-20T08:08:04.971Z","0.1.2":"2016-07-20T08:11:32.607Z"},"author":{"name":"Tim Sebastian @timse"},"license":"MIT","description":"returns md5 hash of a specified path","maintainers":[{"email":"it-ops@jimdo.com","name":"jimnpm-oncall"},{"email":"dev+jimnpmread@jimdo.com","name":"jimnpmread"},{"email":"dev@jimdo.com","name":"jimnpm"},{"email":"hauke@jimdo.com","name":"partyschaum"},{"email":"mail@mathiswiehl.de","name":"fahrradflucht"}],"readme":"#md5-loader\n\nThe md5 loader lets you `import` the checksum of a directory as a variable.\n\n## Potential use case\n\nIn a redux app there is the chance you want to persist the store or parts of it in the `localStorage`/`sessionStorage` and rehydrate your app on page-reload or a later session.\nHowever this means you may get very old data from the store if your app has changed significantly in the mean time. Therefore you need some kind of versioning in the localStorage/sessionStorage.\n\nThe md5-loader allows you to get the md5-checksum of e.g. your `reducer`-directory, so everytime a reducer changes, the version for the store will change. This allows you to check on rehydration if the versions match and reject or migrate the stored state.\n\n## Parameters\n\nAs webpack tries to import content before passing them to the loader you cant specify the directory like you would be used in a *normal* loader.\nInstead you should use the `md5-loader` inline and specify the `path` to the directory as a loader *query-parameter*.\nAs there is no actual file required the loader also does not get the `context` in which it is running, thus you must specify the path to the directory absolute from the root of your project (where your node_modules live etc.).\n\n## Example\n\n```js\nvar checksum = require('md5-loader?path=some/path/from/root/of/project!');\nconsole.log(checksum);\n// logs the md5-checksum of the above directory\n```\n","readmeFilename":"README.md"}