{"_id":"@andrewsantarin/staticify","_rev":"5-c3033dc249e6ab2c847f9bee24d34992","name":"@andrewsantarin/staticify","dist-tags":{"latest":"0.0.3"},"versions":{"3.3.5":{"name":"@andrewsantarin/staticify","version":"3.3.5","description":"A better static asset handler for Node.js/Express.js","main":"index.js","types":"index.d.ts","author":{"name":"Rakesh Pai","email":"rakeshpai@errorception.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/errorception/staticify.git"},"scripts":{"mocha":"mocha --exit","xo":"xo","test":"npm run xo && npm run mocha && npm run tsc","test:cov":"nyc npm run test","tsc":"tsc --esModuleInterop --noEmit ./test/*.ts"},"keywords":["static","asset","versioning","caching","express","expressjs"],"dependencies":{"ignore-by-default":"^1.0.1","memoizee":"^0.4.14","send":"^0.17.1"},"devDependencies":{"@types/express":"^4.17.2","@types/express-serve-static-core":"^4.17.0","@types/send":"^0.14.5","mocha":"^6.2.2","nyc":"^14.1.1","should":"^13.2.3","typescript":"^3.7.2","xo":"^0.25.3"},"engines":{"node":">=8.10.0"},"xo":{"space":4,"rules":{"capitalized-comments":"off","spaced-comment":"off","func-style":["error","expression"]},"overrides":[{"files":"test/**","envs":["mocha"]}]},"nyc":{"reporter":["html","lcov","text-summary"]},"gitHead":"3655a8f181f84f2e57d3a520aaac9675040a975b","bugs":{"url":"https://github.com/errorception/staticify/issues"},"homepage":"https://github.com/errorception/staticify#readme","_id":"@andrewsantarin/staticify@3.3.5","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-nqSfyG17Xco0X2tDSb6+zF32mfl76uREDKpKFbuxE7UW/3musD7EAlCpe6KuBJh1zF7253gSXGA6e5mTjcDQng==","shasum":"6e7d28dadf1b6f56a916b7b00a5102aafe270c83","tarball":"https://registry.npmjs.org/@andrewsantarin/staticify/-/staticify-3.3.5.tgz","fileCount":3,"unpackedSize":12559,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3yxwCRA9TVsSAnZWagAAKM4P/0d7p7G9unh5pAreLZtS\nfxGvnocN6VwBmG4Q8KynGCb65SJXwlz6jBWlY6y0tdyJUgnPTu3maM+xW6Pf\nLfoqu3cgwWnU9VIyIkQsXUOyoJsFHbJKedWLILw/6AUF/fM06w28yGAb+TjU\nJPXuW7FAFzXHEXLA+F3dIHdOt4KIvGw1Q8VPzw9agrEqJEdkAGmz3hGiY73T\n+suuBeppXJ+j4pl9vCMAMS6cQUJN/YrzcouJskUPLZpiG+2bKHLHXsTQDYKo\njmZgmKciAV8+dH5uXU83cYARoj8DhFmW3K1mQA5zmAGNL3ldS2QQtqC9l/B1\n4JkM36f1QgB31KCUFHoUIKouB74lO7ChnWVLjg9BH/bjKBlmOmcTPlgMbW/z\nTCe8wD6LSur43bxZBjCBQNiVioPaInuK0XB49El2tU7nldsGad3wYF43AmSF\nRehZfE8XDUBfIdx2B1HZY84ARHVkMbQpyli2mfDWs8Orl/ti6amv+5iL78Yu\nsqtNojaPScXVV93Ate4TrvsdIImmQ4f5W8F3boHSQizIET1+zRL9qPV8ELqN\nxjWbm7RiPf+UDgpdu2osPNo79nnI265/BBf0OmXqu8P+AHjjsEzM1M1XjKJD\n0LpdsampidoKXN9mvap96bpTXdavXlspLMF185G435GJlrgWvyI6Pm1Op5lz\nACwW\r\n=YECX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHCL9qa0K8N7ZT90hOTqQdK80wTkVbGXI4lsNSblR8kAiEApDX7QO2tb0iFQLoRI8U2GF0pxGUTRS1bONwkdk3wrb4="}]},"maintainers":[{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"}],"_npmUser":{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/staticify_3.3.5_1574906991725_0.5963312405674346"},"_hasShrinkwrap":false},"3.3.6":{"name":"@andrewsantarin/staticify","version":"3.3.6","description":"A better static asset handler for Node.js/Express.js","main":"index.js","types":"index.d.ts","author":{"name":"Rakesh Pai","email":"rakeshpai@errorception.com"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/errorception/staticify.git"},"scripts":{"mocha":"mocha --exit","xo":"xo","test":"npm run xo && npm run mocha && npm run tsc","test:cov":"nyc npm run test","tsc":"tsc --esModuleInterop --noEmit ./test/*.ts"},"keywords":["static","asset","versioning","caching","express","expressjs"],"dependencies":{"ignore-by-default":"^1.0.1","memoizee":"^0.4.14","send":"^0.17.1"},"devDependencies":{"@types/express":"^4.17.2","@types/express-serve-static-core":"^4.17.0","@types/send":"^0.14.5","mocha":"^6.2.2","nyc":"^14.1.1","should":"^13.2.3","typescript":"^3.7.2","xo":"^0.25.3"},"engines":{"node":">=8.10.0"},"xo":{"space":4,"rules":{"capitalized-comments":"off","spaced-comment":"off","func-style":["error","expression"]},"overrides":[{"files":"test/**","envs":["mocha"]}]},"nyc":{"reporter":["html","lcov","text-summary"]},"gitHead":"3655a8f181f84f2e57d3a520aaac9675040a975b","bugs":{"url":"https://github.com/errorception/staticify/issues"},"homepage":"https://github.com/errorception/staticify#readme","_id":"@andrewsantarin/staticify@3.3.6","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-T8M26Dwt/pZFSysLae1wCRV6yvMBUzado7bbgzFMcyZ8mUuQAkaBCF9rba1jy6D45HzrPB1WX5ItEeXlWxdW2Q==","shasum":"0de57bb5017db68fae4cdd947bc67a71891c9c1d","tarball":"https://registry.npmjs.org/@andrewsantarin/staticify/-/staticify-3.3.6.tgz","fileCount":4,"unpackedSize":17441,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3y2ACRA9TVsSAnZWagAAhhwP/iwuTfzMGOFwO6/II9YO\nBw2bubdoE2Mwx546TuhNcuURH/EfilSFtQXLJjTelGtmCGq6ElT49miQasie\ntCd6O5AAXTTfd9uoIIFgEqbmg2/HcURROBkbR5HV1/KWqgVsUj8eKucd29u2\nF06rorO3w1G92Zq8eXslwX05kUjcnEvyNda/QR10KgMAHXofnPujfDODnkq7\nX018sG1lDxS03TllZ7iD3Np94npCtiu/r1SlrVZnM3/qT/mWYxdA3h08PkiO\nIRjtFYjn5wYGUXkdcv4HabUSWXuucoLV8AxPH7bACEHVBBXpYdXcNi1dLFeB\ntUpaP+vNdVXTu1j/x04k2xhI7kHkuQCr3iT01xeGsumYcalDix4cbL2+C6x5\noCd02ReyjV98P3TlXRGl8WKWaRUae/xL2juefpiBTrgmQk+EJqw0u2lhIGmB\nZIzX/OxssVbu7t9QeCFZ1qFP72Co0EH3ADF6U3f/gh3e0j10anF7aj/ukZnr\na6z62QLLiJOjFiWUrHCzH/ygoF1X0e4BKTTyTxz6WTly9VItM51FW/tFid3P\njqRzJEE4lRbdJiP/0cPfb3v5PqnIUniOIt1ybbojRW42nSx5S7fB4AjJVmsX\nUNef0NEXOCl+gQ8L7Ll+YPPUAgJ12sxo0jWenAYVLIUR6hdJEWkUYUhEs441\nlQbu\r\n=jYXn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGWzQyJTlp+yt/rMNce4E28BzoGnooKpVDnRFO0K7ICnAiAbuu1aqmyNxzX3pVxxVQqfK355brETQO1vbvH3HAqcLw=="}]},"maintainers":[{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"}],"_npmUser":{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/staticify_3.3.6_1574907263786_0.5516878950340345"},"_hasShrinkwrap":false},"0.0.1":{"name":"@andrewsantarin/staticify","version":"0.0.1","description":"Work-in-progress TypeScript support for the latest version of 'staticify': A better static asset handler for Node.js/Express.js","main":"index.js","author":{"name":"Rakesh Pai","email":"rakeshpai@errorception.com"},"contributors":[{"name":"Cezar Andrew Villegas Santarin","email":"andrew.santarin@gmail.com","url":"https://github.com/andrewsantarin"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrewsantarin/staticify.git"},"scripts":{"mocha":"mocha --exit","xo":"xo","tsc":"tsc --esModuleInterop --noEmit test/index.ts","test":"npm run xo && npm run mocha && npm run tsc","test:cov":"nyc npm run test"},"keywords":["static","asset","versioning","caching","express","expressjs"],"dependencies":{"ignore-by-default":"^2.0.0","memoizee":"^0.4.14","send":"^0.17.1"},"devDependencies":{"@types/express":"^4.17.6","@types/express-serve-static-core":"^4.17.7","@types/send":"^0.14.5","mocha":"^8.0.1","nyc":"^15.1.0","should":"^13.2.3","typescript":"^3.9.5","xo":"^0.32.0"},"engines":{"node":">=10"},"xo":{"space":4,"rules":{"capitalized-comments":"off","spaced-comment":"off","func-style":["error","expression"],"unicorn/better-regex":"off","unicorn/prevent-abbreviations":"off"},"overrides":[{"files":"test/**","envs":["mocha"]}]},"nyc":{"reporter":["html","lcov","text-summary"]},"gitHead":"250b979e160c4feb5115dd3dcb21c56fde0f60a1","bugs":{"url":"https://github.com/andrewsantarin/staticify/issues"},"homepage":"https://github.com/andrewsantarin/staticify#readme","_id":"@andrewsantarin/staticify@0.0.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-p8Md1HGz3EHwpz//ef8BjvaQSrnTiyp2bCxjmmUyyVR7il+uavEmljVCtA4Oh9oleYrSUfjfaOg/NB29iw/6hA==","shasum":"1588928df444b42293e14d00d7330177fbad06f2","tarball":"https://registry.npmjs.org/@andrewsantarin/staticify/-/staticify-0.0.1.tgz","fileCount":5,"unpackedSize":19927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8dDICRA9TVsSAnZWagAAJnIP/2LTXeMotl0ARz+Guba4\nsC9ZWi7qBk4VPjHFm4mGIjYTv5Ygfai4Kgr0/oOiYkwq9kciS3RvYaZje955\nO5z956QMQnxlt4kxJvK8jPOBJSFUbDrFUc1PKJunJOFFom2swvQpQxK5EafG\n+9VP8goap1Esn8XRhloisLNhV32gUxMN7N3xcbuZs++wqqff2duMnXYqeQ/i\nd8tx2pYoNy338ueZbkI4pr4UJMJQQC0UfDO8u7ACOjC0R+QwhsqdizENHp/6\nV6FplRCpBrCaZk+Pd8EmZYSD947tuhMRSozndUyZDLMRXmQOQOybSx2YkI/4\nc+nI58+CVp0hv++ypFq/U5FYnTaorIyk/O6rzxzWyB1A3jt7BBUIHIYIvomK\nDilaGUPkkpWRJXKlgQdI5+mL4iesD8sWoU23xd4U56iCWpNeB42a4uVtOAbg\nJKszA3pqIaGzrEmIcZcV32/rnEH1PdwM99gsAeJAn/EubYkAUev2+6sAXyqf\nq5j41nfegxGocBNd3xF3zfq1QyMrycGg7f4mTigLZr+AvSWE8L3yOLJDin+Q\nSRDOEeoE68cqXzMuHebMJ5l9o+b07oDIXiu3FXOql0IBCFjK2rOjwGLkAPlc\ninCIs6/pvWKsKAz+UxvSsLBVdpe68snow+VVu3AaC6rNPxBSU8mTdU4w4CUZ\nf5uo\r\n=VlrO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaAKiIBfvN0VepwDp/lk+n1A42dtjp/P2iUP5AB4E3pAIgSLUw/GA2sTycsfRZB+DvMwKru3a6fOKC4gcxuitSn68="}]},"maintainers":[{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"}],"_npmUser":{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/staticify_0.0.1_1592905928339_0.6665526165048812"},"_hasShrinkwrap":false},"0.0.2":{"name":"@andrewsantarin/staticify","version":"0.0.2","description":"Work-in-progress TypeScript support for the latest version of 'staticify': A better static asset handler for Node.js/Express.js","main":"index.js","author":{"name":"Rakesh Pai","email":"rakeshpai@errorception.com"},"contributors":[{"name":"Cezar Andrew Villegas Santarin","email":"andrew.santarin@gmail.com","url":"https://github.com/andrewsantarin"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrewsantarin/staticify.git"},"scripts":{"mocha":"mocha --exit","xo":"xo","tsc":"tsc --esModuleInterop --noEmit test/index.ts","test":"npm run xo && npm run mocha && npm run tsc","test:cov":"nyc npm run test"},"keywords":["static","asset","versioning","caching","express","expressjs"],"dependencies":{"ignore-by-default":"^2.0.0","memoizee":"^0.4.14","send":"^0.17.1"},"devDependencies":{"@types/express":"^4.17.6","@types/express-serve-static-core":"^4.17.7","@types/send":"^0.14.5","mocha":"^8.0.1","nyc":"^15.1.0","should":"^13.2.3","typescript":"^3.9.5","xo":"^0.32.0"},"engines":{"node":">=10"},"xo":{"space":4,"rules":{"capitalized-comments":"off","spaced-comment":"off","func-style":["error","expression"],"unicorn/better-regex":"off","unicorn/prevent-abbreviations":"off"},"overrides":[{"files":"test/**","envs":["mocha"]}]},"nyc":{"reporter":["html","lcov","text-summary"]},"gitHead":"85a84b771dd35c8df57f23b58df8d9dbb43db732","bugs":{"url":"https://github.com/andrewsantarin/staticify/issues"},"homepage":"https://github.com/andrewsantarin/staticify#readme","_id":"@andrewsantarin/staticify@0.0.2","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/BQ/OHe3MJvIHtND00kbYxEZ3Os3q90vqFJClRjBYvFNvGzQr3ed1aLa3bFGe4BMdNwLL0DJHwzvSl3rx+0xgA==","shasum":"83c2f41642ae5dead8f0443ab22f36ecbbfb7f73","tarball":"https://registry.npmjs.org/@andrewsantarin/staticify/-/staticify-0.0.2.tgz","fileCount":5,"unpackedSize":20004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8dGICRA9TVsSAnZWagAAWpoP/jM65hOxIayvbkAoZt/9\n05dnoNmJgj7HROa3vlIUGUAANa/jCYd7bGzI8K6y1mSscxllREag+DmoYUaT\nhO5lu7qPCk+OFi0xVwMUY9k5tD2QFCd+MujxH1u014ZJVFE9yPpczkAGWgpq\ni6BUbh6qfAq11inY2lNGWVmZlRUvsMTFdGD1A7k6I8l1cIIpFcqBuqV7CdSQ\nShzHX+OALkLZeM2HGxQc5MnbCkwxVt3soCFqFnywvmJUL39AhX6QH/6m5fUn\nW+oo5C3bxFeOsGoMrG37+5hTFSBQylcZUMwJrzbaweRWec6mFDMYVupa9e9L\nXQ1pbqPJZ7MnkpldvEbT/ddvwe4iuj/BXv35Y76akdCbax44jl6MQlByOiIR\n+s8+hKu4t2OSSQYVpo33Ec+11PRFx5YhTwm0XqxrlwT9nBKSlaNkoTpnCP0c\nntKhuF+BWDMLUG1v6C/AHobiZAzMqt8bl5j8L2yhqdP9cE4dUTZDJi+5aURI\nuZ35bcjxmRgH83vGflEw8EE9/zvNcbZVO6CQtaY5M/njZFTZG2tfWOtDIEsA\nqeyRsyoqOC6NDmvOyeHGy+9ZdXy2wX14fuc7OgKY92IFlJQME2RWO6VPpTqC\nZUNvvVkZG3wALIUA1lybe2EIE+8A3ismXohJu9qwNxC9eLixnGhdKdGGofUk\nSNnR\r\n=Im81\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBqjj+GLG55zq1sGNbqmKr6M6ubaQ0jGOFoG9tVwoE9bAiEA04JZljIbxa+TAo9PG7QGUxDZESC9c6kQLMFLeY+fouU="}]},"maintainers":[{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"}],"_npmUser":{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/staticify_0.0.2_1592906119576_0.0537431727778086"},"_hasShrinkwrap":false},"0.0.3":{"name":"@andrewsantarin/staticify","version":"0.0.3","description":"Work-in-progress TypeScript support for the latest version of 'staticify': A better static asset handler for Node.js/Express.js","main":"index.js","author":{"name":"Rakesh Pai","email":"rakeshpai@errorception.com"},"contributors":[{"name":"Cezar Andrew Villegas Santarin","email":"andrew.santarin@gmail.com","url":"https://github.com/andrewsantarin"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/andrewsantarin/staticify.git"},"scripts":{"mocha":"mocha --exit","xo":"xo","tsc":"tsc --esModuleInterop --noEmit test/index.ts","test":"npm run xo && npm run mocha && npm run tsc","test:cov":"nyc npm run test"},"keywords":["static","asset","versioning","caching","express","expressjs"],"dependencies":{"ignore-by-default":"^2.0.0","memoizee":"^0.4.14","send":"^0.17.1"},"devDependencies":{"@types/express":"^4.17.6","@types/express-serve-static-core":"^4.17.7","@types/send":"^0.14.5","mocha":"^8.0.1","nyc":"^15.1.0","should":"^13.2.3","typescript":"^3.9.5","xo":"^0.32.0"},"engines":{"node":">=10"},"xo":{"space":4,"rules":{"capitalized-comments":"off","spaced-comment":"off","func-style":["error","expression"],"unicorn/better-regex":"off","unicorn/prevent-abbreviations":"off"},"overrides":[{"files":"test/**","envs":["mocha"]}]},"nyc":{"reporter":["html","lcov","text-summary"]},"gitHead":"6dbaf9aea96341bcfe551f54df081d0e68041aab","bugs":{"url":"https://github.com/andrewsantarin/staticify/issues"},"homepage":"https://github.com/andrewsantarin/staticify#readme","_id":"@andrewsantarin/staticify@0.0.3","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RtCi/93j1iECaQTCCu1cB1C7fUDlvmf65cCfS6EZHNKsUV+4rp2GOBe8OX9vKCVVpGXzEf4Ij/4XUVzrPgwETg==","shasum":"a4a262b8f3477a120e009997b3864e1573f222cc","tarball":"https://registry.npmjs.org/@andrewsantarin/staticify/-/staticify-0.0.3.tgz","fileCount":5,"unpackedSize":19336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8dZiCRA9TVsSAnZWagAASvYQAJ+uHjc9q5efk7qt17qo\nN+Un4kwKqu67b5zxs8UGTARn9YDo8hN2IMuvyvz20iGryrtzwfG6/EeUO7fP\nrx1DvKvvo8eEop8HKBvdQizteL39Y7fxr/vX+OPQaOnM9LC3TWyrMG/0+kiZ\nCeb8avdfujmsEkGWaOX9WfBS1zd5HLs1pYgYECt2o2bJnCCV9lpJjawTt+Em\nhXTwiphe2eIh4YNC5VXrKFbJ4Fx5qvAM5j+5MHp7LV2wmUqHHCFr8xB1ayCb\ngM5gIiRN2Sxa9NSG1Rp9ePyK1juGwBxaCrpt+gBoLNkGzRlXpSo31prpcywM\nW0KDirdFYl7SpsMOqFBl4teSmZusiB/envfhVeEvLLgHbuhIocpSSfkks0/x\nC7qWrgPCWVOBj7Cm/bDz6hEZsZunQ7RiMC35e5RrlYfpCuB4bRo7uxT/O56/\nAR+L9ylYgYB5Z9lcmf52kwI0N41XsZ1lBvQcLaeQKMIRi6n5ssFk/DRazfzu\nPHtEiJNhRF60n1BMjeel98AKG9/jteznYd7R6aheXDr1f4pEbMidgk7fMiJo\nVTqmcj2d0q9SMGXbE48fssNAMQbQA3NmVlkhbzavVbHCCNtE7kD/k5uawdr2\nYmu2FLTisrjrJxIc/56ilmAZNzyXi8e3BOS2gzSuJheW62+Z0CQMu5V3MYZn\nsU7R\r\n=XS7c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAD9b9Y0NsWyKQSWs9n5Clg/O2lZ9rIGrStoNAFNI1U1AiEAp5Z8aj3l5dioqfd6bfzu4oebqLG3ePWZDxXIC6ic9n8="}]},"maintainers":[{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"}],"_npmUser":{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/staticify_0.0.3_1592907361642_0.4506369265150034"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-28T02:09:51.458Z","3.3.5":"2019-11-28T02:09:51.859Z","modified":"2022-04-04T14:01:54.008Z","3.3.6":"2019-11-28T02:14:23.901Z","0.0.1":"2020-06-23T09:52:08.481Z","0.0.2":"2020-06-23T09:55:19.793Z","0.0.3":"2020-06-23T10:16:01.777Z"},"maintainers":[{"name":"andrewsantarin","email":"andrew.santarin@gmail.com"}],"description":"Work-in-progress TypeScript support for the latest version of 'staticify': A better static asset handler for Node.js/Express.js","homepage":"https://github.com/andrewsantarin/staticify#readme","keywords":["static","asset","versioning","caching","express","expressjs"],"repository":{"type":"git","url":"git+https://github.com/andrewsantarin/staticify.git"},"author":{"name":"Rakesh Pai","email":"rakeshpai@errorception.com"},"bugs":{"url":"https://github.com/andrewsantarin/staticify/issues"},"license":"MIT","readme":"# staticify\n\n[![NPM version](https://img.shields.io/npm/v/@andrewsantarin/staticify.svg)](https://www.npmjs.com/package/@andrewsantarin/staticify)\n\n> ## Fork\n>\n> This is a **temporary fork** for work-in-progress TypeScript support for the original [`staticify`](https://www.npmjs.com/package/staticify) library (on [GitHub](https://github.com/andrewsantarin/staticify/tree/feature/typescript-support-wip-npm)). The author of this fork assumes no liability for any damages this fork may cause (see [LICENSE](https://github.com/andrewsantarin/staticify/blob/feature/typescript-support-wip-npm/LICENSE)) and will not provide further support unless it applies to bugs with existing type definition issues. Please refer to the original library for official TypeScript declarations as soon as they are available.\n>\n> ## Usage\n>\n> ```sh\n> npm install --save @andrewsantarin/staticify\n> npm install --save staticify@npm:@andrewsantarin/staticify # If you'd rather use the original name, but point to this library\n> ```\n\nA better static asset handler for Node.js/Express.js.\n\nProvides helpers to add a version identifier to your static asset's public URLs, and to remove the hash before serving the file from the file system.\n\nHow your URLs are transformed:\n\n```\n/home.css --> /home.<MD5 hash of contents>.css\n```\n\nFor example:\n\n```\n/home.css --> /home.ae2b1fca515949e5d54fb22b8ed95575.css\n/js/script.js --> /js/script.3205c0ded576131ea255ad2bd38b0fb2.js\n```\n\nThe version hashes are the MD5 of the contents of the static asset. Thus, every file has it's own unique version identifier. When a file changes, only it's own hash changes. This lets you have a far-futures expires header for your static assets without worrying about cache-invalidation, while ensuring that the user only downloads the files that have changed since your last deployment.\n\n## With express.js\n\n```js\nconst path = require('path');\nconst staticify = require('staticify')(path.join(__dirname, 'public'));\n\n// ...\napp.use(staticify.middleware);\n\napp.helpers({getVersionedPath: staticify.getVersionedPath});\n```\n\nAnd in your template:\n\n```html\n<link href=\"${getVersionedPath('/home.css')}\" rel=\"stylesheet\">\n```\n\n### TypeScript\n\nstaticify ships with official type declarations for TypeScript out of the box.\n\n## Options\n\nOptions are specified as the second parameter to `staticify`:\n\n```js\nconst staticify = require('staticify')(path.join(__dirname, 'public'), options);\n```\n\n### includeAll\n\nInclude all files when scanning the public directory. By default, the directories from [ignore-by-default](https://github.com/novemberborn/ignore-by-default/blob/master/index.js) are ignored.\n\n* Type: Boolean\n* Default: `false`\n\n### shortHash\n\nGenerate a short (7-digit) MD5 hash instead of the full (32-digit) one.\n\n* Type: Boolean\n* Default: `true`\n\n### pathPrefix\n\nIf you are using the staticify convenience middleware through a specific route, it is necessary to indicate the route in this option.\n\n* Type: String\n* Default: \"/\"\n\n```js\nconst path = require('path');\nconst options = { pathPrefix: '/assets' };\nconst staticify = require('staticify')(path.join(__dirname, 'public'), options);\n\napp.use('/assets', staticify.middleware);  // `app` is your express instance\n```\n\n### maxAgeNonHashed\n\n* Type: String | Number\n* Default: `0`\n\n`maxAge` for assets without a hash such as `/image.png` passed to [send](https://github.com/pillarjs/send).\n\nCan be defined as a number of milliseconds or string accepted by [ms](https://www.npmjs.org/package/ms#readme) module (eg. `'5d'`, `'1y'`, etc.)\n\n### sendOptions\n\n* Type: Object\n* Default: `sendOptions: { maxAge: '1y' }` for hashed assets or `maxAge: 0` for non-hashed assets.\n\nYou can pass any [send](https://github.com/pillarjs/send) options; used in `middleware` and `serve` functions.\n\n## Usage\n\nInstall from npm:\n\n```sh\nnpm install staticify\n```\n\nInitialize the staticify helper with the path of your public directory:\n\n```js\nconst path = require('path');\nconst staticify = require('staticify')(path.join(__dirname, 'public'));\n```\n\nThis returns an object with the following helpers:\n\n### .getVersionedPath(path)\n\nDoes the following transformation to the `path`, and returns immediately:\n\n```js\nstaticify.getVersionedPath('/path/to/file.ext'); // --> /path/to/file.<MD5 of the contents of file.ext>.ext\n```\n\nThis method is meant to be used inside your templates.\n\nThis method is really fast (simply an in-memory lookup) and returns immediately. When you initialize this module, it crawls your public folder synchronously at startup, and pre-determines all the MD5 hashes for your static files. This slows down application startup slightly, but it keeps the runtime performance at its peak.\n\n### .middleware(req, res, next)\n\nConvenience wrapper over `.serve` to handle static files in express.js.\n\n```js\napp.use(staticify.middleware);  // `app` is your express instance\n```\n\n### .replacePaths(string)\n\nTakes the input string, and replaces any paths it can understand. For example:\n\n```js\nstaticify.replacePaths('body { background: url(\"/index.js\") }');\n```\n\nreturns\n\n```js\n\"body { background: url('/index.d766c4a983224a3696bc4913b9e47305.js') }\"\n```\n\nPerfect for use in your build script, to modify references to external paths within your CSS files.\n\n### .stripVersion(path)\n\nRemoves the MD5 identifier in a path.\n\n```js\nstaticify.stripVersion('/path/to/file.ae2b1fca515949e5d54fb22b8ed95575.ext'); // --> /path/to/file.ext\n```\n\nNote, this function doesn't verify that the hash is valid. It simply finds what looks like a hash and strips it from the path.\n\n### .refresh()\n\nRebuilds the MD5 version cache described above. Use this method sparingly. This crawls your public folder synchronously (in a blocking fashion) to rebuild the cache. This is typically only useful when you are doing some kind of live-reloading during development.\n\n### .serve(req)\n\nHandles an incoming request for the file. Internally calls `.stripVersion` to strip the version identifier, and serves the file with a `maxAge` of one year, using [send](https://github.com/pillarjs/send). Returns a stream that can be `.pipe`d to a http response stream. See [here](https://github.com/pillarjs/send#options) for the options you can pass.\n\n```js\nstaticify.serve(req, {\n    sendOptions: {\n        maxAge: 3600 * 1000 // milliseconds\n    }\n}).pipe(res);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","contributors":[{"name":"Cezar Andrew Villegas Santarin","email":"andrew.santarin@gmail.com","url":"https://github.com/andrewsantarin"}]}