{"_id":"connect-history-api-fallback","_rev":"42-26a367d2bb371fb88b9b48568b1e0632","name":"connect-history-api-fallback","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.1":{"name":"connect-history-api-fallback","version":"0.0.1","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"http://github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-contrib-nodeunit":"~0.1.2"},"_id":"connect-history-api-fallback@0.0.1","dist":{"shasum":"deb051601f0ebd13727c76b165d73fef52f65975","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.1.tgz","integrity":"sha512-ZZsaBEIMkhTeeuEY8G+oqnKdVjQTUnkl1WYCCrpsCnlhlAric3ytwwOK0Y3jba7v490UOI9zq+J2w1ICSTIRqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVOD3Q/efu0VYxr+vM1TLcUS2zeS05A9DZzTtOWftI9QIgLIXsDX8RbhgNKgjTJo1gBBlMdozUN6geyuA95viPZ+c="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"directories":{}},"0.0.2":{"name":"connect-history-api-fallback","version":"0.0.2","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"http://github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-contrib-nodeunit":"~0.1.2"},"_id":"connect-history-api-fallback@0.0.2","dist":{"shasum":"674832149d54813039ed57919ebd89337ebedb9c","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.2.tgz","integrity":"sha512-+o08qyptAbtpowfCw29/DqG42JM5vaemaG3SvpWwjQPwPDF66zk5+J/+Ni7hlcJKeInysCzqPN5K9BqW7J+U8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoxr0a0mGr9SHE4U6GaMhY2CpdEuEvjWNvtaSIKE57sgIgc1ubgdGBsl+u1IrvRDvJzD+r1yMMaADQQO2nSqgbUVc="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"directories":{}},"0.0.3":{"name":"connect-history-api-fallback","version":"0.0.3","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"http://github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-contrib-nodeunit":"~0.1.2"},"_id":"connect-history-api-fallback@0.0.3","dist":{"shasum":"946b96eb735defe203c20dfe37c28874ea758a91","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.3.tgz","integrity":"sha512-TrPbBfXeHmj/cV5Z2KqnUwHWWMgVkPbW4Y92UjH1i7gr2Hvtj4YZbcxXlTHt3fSLyBk3z7XbO2IJZACpm/1Y1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8FERZ+iT0AcLiNJg5e7/HeZkFKXPRlAcT49sMN5FPIAiBUsXLHfrSV+iNpkyUUz+vPc1tvFIvsoISGd1EaNtBXfw=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"directories":{}},"0.0.4":{"name":"connect-history-api-fallback","version":"0.0.4","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"http://github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-contrib-nodeunit":"~0.1.2"},"_id":"connect-history-api-fallback@0.0.4","dist":{"shasum":"b430713e14b52df4a97de72bd17d38cbddbe14d3","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.4.tgz","integrity":"sha512-RsNN4hBctZbuyXUsR4DZ+/LpZ3pjvAeD1gHKQvi8MZgIc/UoA0FwtUdo8f3VQwDZCy7DiuYkbG0w2nTV/zG2FQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC20CrZiZhZWSKhA0Ey8RbyvbHFtvVRpj8EJ+sT3U5/tAiEA4QVXINI1dzBQ8rBMNrHFr2B9OK4A/LkFK8XvEOGASAA="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"directories":{}},"0.0.5":{"name":"connect-history-api-fallback","version":"0.0.5","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"http://github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"license":"MIT","devDependencies":{"grunt":"~0.4.1","grunt-contrib-nodeunit":"~0.1.2"},"bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback","_id":"connect-history-api-fallback@0.0.5","dist":{"shasum":"ef0509d0040bfbc486eab5f7f500bb1769cf354a","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.5.tgz","integrity":"sha512-g8xC2XLwbrNIfIOottVXTvYJW+yfQwdnVvKKlvcPIj9BI8Fd13OakCQaj6z3kGgoRsX0X+rZCj4DDJFl0XitdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpG1qdfBB7wT5T5aHQTO5IQG4zyshIQj3RYmG9YLiEkAiAHJNOAZaSEtVYEZdpsIi+XuEznEcnHFTcXOR3UHS/E1Q=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"directories":{}},"1.0.0":{"name":"connect-history-api-fallback","version":"1.0.0","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"eslint lib/index.js test/index_test.js && nodeunit test/index_test.js"},"repository":{"type":"git","url":"http://github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"license":"MIT","devDependencies":{"eslint":"^0.18.0","nodeunit":"^0.9.1","sinon":"^1.14.1"},"gitHead":"7c4738211539505d1e8c2da9a3abbf03feaacc73","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback","_id":"connect-history-api-fallback@1.0.0","_shasum":"a3bdae0c97a0f15b861674725ef4cca6b084d8f6","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.37","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"dist":{"shasum":"a3bdae0c97a0f15b861674725ef4cca6b084d8f6","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.0.0.tgz","integrity":"sha512-4FaSZ0On8+IJ6tozosQsF7lKT/FblTpVjB4bLNTX94UwFv5g+N+x+1YYpfmKTMfBqW1iS1y57K6FHKOJ+Y9Rpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPh+RbmueXzyGNSe1c1CVKqSaKCYnf5I6vgxSaET9nAQIhAP2xjctpsB6pgdVxsPm46tiTUNE9otP2ORd2sMdqK1hk"}]},"directories":{}},"1.1.0":{"name":"connect-history-api-fallback","version":"1.1.0","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"eslint lib/index.js test/index_test.js && nodeunit test/index_test.js"},"repository":{"type":"git","url":"http://github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"license":"MIT","devDependencies":{"eslint":"^0.18.0","nodeunit":"^0.9.1","sinon":"^1.14.1"},"gitHead":"c4411c155c00c84f0a9fd26e17d810dc6480171b","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback","_id":"connect-history-api-fallback@1.1.0","_shasum":"5a6dee82d9a648cb29131d3f9dd400ffa4593742","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.37","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"dist":{"shasum":"5a6dee82d9a648cb29131d3f9dd400ffa4593742","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.1.0.tgz","integrity":"sha512-H5En/hMOOzxTPO7cMDGQsITjqJL9Wq9EvNbH+3+FSpFADl5ss45NioN0b/Wnw0h5SMYBxJE+upRrn3JOaF3tmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvtqtsffNktZb+4yK3/4ltsLZUEdMPCpxKIPEXckvFdQIhAI/mH0J4eavvg38OFSTEy8dBc+1yMlBcxeKCZ7/8En3P"}]},"directories":{}},"1.2.0":{"name":"connect-history-api-fallback","version":"1.2.0","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"eslint lib/index.js test/index_test.js && nodeunit test/index_test.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"license":"MIT","devDependencies":{"eslint":"^0.18.0","nodeunit":"^0.9.1","sinon":"^1.14.1"},"gitHead":"e5bc77c5b1e3c9d07647764675971d262e773ac9","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback#readme","_id":"connect-history-api-fallback@1.2.0","_shasum":"df4a8b05e40362f5b598a1c0a6aa012f21471d40","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"dist":{"shasum":"df4a8b05e40362f5b598a1c0a6aa012f21471d40","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.2.0.tgz","integrity":"sha512-5jvP8fkGIzcMlJUvkMbLlQtefS5pnzrtIk4KNBzyE8S4ObwW4zgsbaAmcEtTWVs0mOaXlqM2bN23ezFbIhqoow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEX0estA8rnVEnV8lfZthlOz2valEkOS8g4r0XiGvqpYAiEAwTbiJh8b7M9YDZU8pRLL2rwvl9nHL7GCFN9COVFwiLg="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/connect-history-api-fallback-1.2.0.tgz_1458587541331_0.6849686577916145"},"directories":{}},"1.3.0":{"name":"connect-history-api-fallback","version":"1.3.0","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"eslint lib/index.js test/index_test.js && nodeunit test/index_test.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"license":"MIT","devDependencies":{"eslint":"^0.18.0","nodeunit":"^0.9.1","sinon":"^1.14.1"},"gitHead":"709252d1b7afbf4b29748ec9a881684603d01f97","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback#readme","_id":"connect-history-api-fallback@1.3.0","_shasum":"e51d17f8f0ef0db90a64fdb47de3051556e9f169","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"dist":{"shasum":"e51d17f8f0ef0db90a64fdb47de3051556e9f169","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.3.0.tgz","integrity":"sha512-q2mFq74qXpHCIEZxrzD74fXCyTA4ndf00CYmRmK+k7+wFSq2hPQB+tgw7B2GU9SrNGb1RxxVt3+aHGTmfuH+Mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkZyz5+aRV8ihMW2vXHXUMNQz4CXCpGIAdTBSWcbVz1wIgS6ZfUOrs3btc3QQhHsiRqZ+AHkz5SDRpGuIyL7d2+uE="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/connect-history-api-fallback-1.3.0.tgz_1470552836120_0.7486736204009503"},"directories":{}},"1.4.0":{"name":"connect-history-api-fallback","version":"1.4.0","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","files":["lib"],"scripts":{"test":"eslint lib/index.js test/index_test.js && nodeunit test/index_test.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"license":"MIT","devDependencies":{"eslint":"^0.18.0","nodeunit":"^0.9.1","sinon":"^1.14.1"},"gitHead":"7d953fee45b7d2f4e26cb252199ebdd18617f5d6","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback#readme","_id":"connect-history-api-fallback@1.4.0","_shasum":"3db24f973f4b923b0e82f619ce0df02411ca623d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"dist":{"shasum":"3db24f973f4b923b0e82f619ce0df02411ca623d","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.4.0.tgz","integrity":"sha512-4snB3i3Dqw5vsoK5L6fYHwscDyaDb1h6pOgL13jVSDYOQLvKl2w2SoElR/bCKBKjzqKw4ZxrMGBKlXs24PT2PA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYL7TXAW9SydptKYH4/iGg3wVY1wiuOH9L+1gv6LolmAIgLBuvoNPZGLm9Zmf+iLOdQ4os+vcrLxr0Xd1gpuVFfsU="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-history-api-fallback-1.4.0.tgz_1507871134046_0.01949539640918374"},"directories":{}},"1.5.0":{"name":"connect-history-api-fallback","version":"1.5.0","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","files":["lib"],"scripts":{"test":"eslint lib/index.js test/index_test.js && nodeunit test/index_test.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"license":"MIT","devDependencies":{"eslint":"^0.18.0","nodeunit":"^0.9.1","sinon":"^1.14.1"},"gitHead":"9748349e62006ef101c7800d6be8ec37f74fc70c","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback#readme","_id":"connect-history-api-fallback@1.5.0","_shasum":"b06873934bc5e344fef611a196a6faae0aee015a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.5","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"dist":{"shasum":"b06873934bc5e344fef611a196a6faae0aee015a","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz","integrity":"sha512-NoytRUPKJVBfi+2y+dkc+WZZH1yb0lN0xHLQ1rqhfv4U9IPCipkAeaF+8xh3pvBpEn/3kYebMOZGkT/k1lKHGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPObsH3pic++CPHJQJfx0z6uevMWe5C9q3Q4adlZbQDAIgQOj3kxtnf7IspnxBa1ktJF3SPCy3TrJ6i070XI2O1Pk="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-history-api-fallback-1.5.0.tgz_1510246125020_0.02864476339891553"},"directories":{}},"1.6.0":{"name":"connect-history-api-fallback","version":"1.6.0","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"eslint lib/index.js test/index_test.js && nodeunit test/index_test.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens.dev@gmail.com","url":"http://bripkens.de"},"contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"license":"MIT","devDependencies":{"eslint":"^0.18.0","nodeunit":"^0.11.3","sinon":"^1.14.1"},"gitHead":"5d3a83e22f7d8994106b50ff19242b7739938525","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback#readme","_id":"connect-history-api-fallback@1.6.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"bripkens","email":"bripkens.dev@gmail.com"},"dist":{"integrity":"sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==","shasum":"8b32089359308d111115d81cad3fceab888f97bc","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz","fileCount":5,"unpackedSize":11523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNGA8CRA9TVsSAnZWagAAz7EQAJJKxgDIse2UDKLjTFVq\niMD+V5XHO0KDlr+VmT7ayhr05u9ID1cgfWaWBr07JD3IWGmtUNdCjYIu2p+Y\nFilsPW94ta/mEUgVUUHx2RDLFlNz/sDQBiCKcgcSqGosqZaYeEXSVm9LoUD0\nPc2PHb/AJa4LS8h3B4UyNcBa2sk+X3FQ9AlDs8c6o729KI386SpNYVyVhs8h\nZzIcyPI9j2jY/4KpWWgkSKQ7naWebpoGhm5a9r6USiB6PwPD0hEWvgSzAmra\nd42HowhHElHnnnjq9cyrmOo4knCXdeoxXnxNqy8JVYVrAAb7TDyIv4/E4hJg\nZOFiKmxp4SAViZLmZhFVBYE1TtvdoVhKCHLTjIG8mc0Gq3xL1bATmNqdZyWv\nC5z10F7+nmduh89tC/n7cI1NoY6vy7u/3jv/crcPgBlev1wACBkfmWigx1+6\n8mFBudDPS/2tRk9LCDgcyi2RMbiuaUz1RUVSC1t8Gxwjo6PHH5ViZYRHtXWl\nqNavg7Bmsc5FhFQ/s700h27nAAtuhtxni73Nk1GfJsOW3g9rro/zXgFpujv+\nO9OhSJSyZKu4oOfP16OD1KbUiKjvmVm1I2NG2GC0oI+8juFh/8oRCF6hkwCD\nQwLGCMnJ9QpPYmfjUb8ZF5nDiaI4cdiNL44ld32MVXrmiLOyJQm6K+joyTEO\nhKnS\r\n=9k/a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAs2lrVa4DshvuCq26uCxVx2qhvwbDabLiyBQ6+PETrAiEAs615r+PgmZSHDNr0T7SLbTwvS79KVtbY7b79FwTVR7Q="}]},"maintainers":[{"name":"bripkens","email":"bripkens.dev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-history-api-fallback_1.6.0_1546936380183_0.5015516416248609"},"_hasShrinkwrap":false},"2.0.0":{"name":"connect-history-api-fallback","version":"2.0.0","description":"Provides a fallback for non-existing directories so that the HTML 5 history API can be used.","keyswords":["connect","express","html5","history api","fallback","spa"],"engines":{"node":">=0.8"},"main":"lib/index.js","scripts":{"test":"jest && eslint lib/*.js test/*.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/bripkens/connect-history-api-fallback.git"},"author":{"name":"Ben Ripkens","email":"bripkens@gmail.com"},"contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"license":"MIT","devDependencies":{"eslint":"^5.16.0","jest":"^24.8.0","sinon":"^7.3.2"},"gitHead":"6b58bc97d4a2ff2be0a68dc661df5c7857758a55","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"homepage":"https://github.com/bripkens/connect-history-api-fallback#readme","_id":"connect-history-api-fallback@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==","shasum":"647264845251a0daf25b97ce87834cace0f5f1c8","tarball":"https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz","fileCount":4,"unpackedSize":10215,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB+b5ANJqjG8fOG65fC3c3wtdURH1k2P05TqX+Nb+tyDAiAXXYcZuXRg/kgDbPWnvduqc3cJEesXfLCc9q5CrSwpQw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuVPSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpi1g/+LpROEKPW8ncv3jCRDb1t1tA5we6vIMOSQt70bTUfXQmtm2mH\r\nHaVJwKMUfWByNCvlASHBkRE6wIDLQ0PuB7wYS8zLALsw8Czf83MBdkzB7MXm\r\nP8x5LmRTo9g9eVAHSVFeVyqiHIDriqHW0uGcV79mCnNyt6OUczED2usUvKKO\r\nY9OsyDKzVqlX348bi5iIAsujt9B6xFMrp50mtVlxWV3FdWKFk71YQu+gbA5A\r\nd76ANehYiCzAip60FXMfZsKyeWEX/36aRtkLEn63qNuTaI2A6nvUNZkP/z/y\r\nsE8vU3Ie9f5mfH2FGDQjEZ9vaDzIFPeBnd3W4bebtobJqEAnhDcfVxweVsLY\r\nVEM5koPJ8N48rdx/VNKnLDPEcsiJVDT5OUAHZbN0uykPaPgZIRQa1gRh5GQH\r\n3Zqf7fZ2t/a5FCRhJepKFohMrWGCkkG0Lw8FZGC9xsXQUhnAAJ2o0FQCCzkx\r\nDFTYxZoyt7hZL9tAvk1RLE9UYXrkXyGjMdT9fYNFkUDfKBPt57cRdZHZnFiR\r\nzK5AVYcr7lrX3YwvFcjxQoAZ1ygwQwWucLz0watMCcmsyiXo8PLSVJ1PyFf3\r\nCz4p45qPROL/cV7FGnvCjvg07tPbWs/b+yhJy5aUcu7+u6s8Hi1JG5dyyeOc\r\nEM9Ib/6kVYqz/PoYBpTu0uLMu28luX2fTbQ=\r\n=jzKs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bripkens","email":"bripkens@gmail.com"},"directories":{},"maintainers":[{"name":"bripkens","email":"bripkens@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-history-api-fallback_2.0.0_1656312786365_0.09448254445718907"},"_hasShrinkwrap":false}},"readme":"<h1 align=\"center\">connect-history-api-fallback</h1>\n<p align=\"center\">Middleware to proxy requests through a specified index page, useful for Single Page Applications that utilise the HTML5 History API.</p>\n\n<h2>Table of Contents</h2>\n\n<!-- TOC depthFrom:2 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->\n\n- [Introduction](#introduction)\n- [Usage](#usage)\n- [Options](#options)\n\t- [index](#index)\n\t- [rewrites](#rewrites)\n\t- [verbose](#verbose)\n\t- [htmlAcceptHeaders](#htmlacceptheaders)\n\t- [disableDotRule](#disabledotrule)\n\n<!-- /TOC -->\n\n## Introduction\n\nSingle Page Applications (SPA) typically only utilise one index file that is\naccessible by web browsers: usually `index.html`. Navigation in the application\nis then commonly handled using JavaScript with the help of the\n[HTML5 History API](http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-history-interface).\nThis results in issues when the user hits the refresh button or is directly\naccessing a page other than the landing page, e.g. `/help` or `/help/online`\nas the web server bypasses the index file to locate the file at this location.\nAs your application is a SPA, the web server will fail trying to retrieve the file and return a *404 - Not Found*\nmessage to the user.\n\nThis tiny middleware addresses some of the issues. Specifically, it will change\nthe requested location to the index you specify (default being `/index.html`)\nwhenever there is a request which fulfills the following criteria:\n\n 1. The request is a `GET` or `HEAD` request\n 2. which accepts `text/html`,\n 3. is not a direct file request, i.e. the requested path does not contain a\n    `.` (DOT) character and\n 4. does not match a pattern provided in options.rewrites (see options below)\n\n## Usage\n\nThe middleware is available through NPM and can easily be added.\n\n```\nnpm install --save connect-history-api-fallback\n```\n\nImport the library\n\n```javascript\nvar history = require('connect-history-api-fallback');\n```\n\nNow you only need to add the middleware to your application like so\n\n```javascript\nvar connect = require('connect');\n\nvar app = connect()\n  .use(history())\n  .listen(3000);\n```\n\nOf course you can also use this piece of middleware with express:\n\n```javascript\nvar express = require('express');\n\nvar app = express();\napp.use(history());\n```\n\n## Options\nYou can optionally pass options to the library when obtaining the middleware\n\n```javascript\nvar middleware = history({});\n```\n\n### index\nOverride the index (default `/index.html`). This is the request path that will be used when the middleware identifies that the request path needs to be rewritten.\n\nThis is not the path to a file on disk. Instead it is the HTTP request path. Downstream connect/express middleware is responsible to turn this rewritten HTTP request path into actual responses, e.g. by reading a file from disk.\n\n```javascript\nhistory({\n  index: '/default.html'\n});\n```\n\n### rewrites\nOverride the index when the request url matches a regex pattern. You can either rewrite to a static string or use a function to transform the incoming request.\n\nThe following will rewrite a request that matches the `/\\/soccer/` pattern to `/soccer.html`.\n```javascript\nhistory({\n  rewrites: [\n    { from: /\\/soccer/, to: '/soccer.html'}\n  ]\n});\n```\n\nAlternatively functions can be used to have more control over the rewrite process. For instance, the following listing shows how requests to `/libs/jquery/jquery.1.12.0.min.js` and the like can be routed to `./bower_components/libs/jquery/jquery.1.12.0.min.js`. You can also make use of this if you have an API version in the URL path.\n```javascript\nhistory({\n  rewrites: [\n    {\n      from: /^\\/libs\\/.*$/,\n      to: function(context) {\n        return '/bower_components' + context.parsedUrl.pathname;\n      }\n    }\n  ]\n});\n```\n\nThe function will always be called with a context object that has the following properties:\n\n - **parsedUrl**: Information about the URL as provided by the [URL module's](https://nodejs.org/api/url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost) `url.parse`.\n - **match**: An Array of matched results as provided by `String.match(...)`.\n - **request**: The HTTP request object.\n\n\n### verbose\nThis middleware does not log any information by default. If you wish to activate logging, then you can do so via the `verbose` option or by specifying a logger function.\n\n```javascript\nhistory({\n  verbose: true\n});\n```\n\nAlternatively use your own logger\n\n```javascript\nhistory({\n  logger: console.log.bind(console)\n});\n```\n\n### htmlAcceptHeaders\nOverride the default `Accepts:` headers that are queried when matching HTML content requests (Default: `['text/html', '*/*']`).\n\n```javascript\nhistory({\n  htmlAcceptHeaders: ['text/html', 'application/xhtml+xml']\n})\n```\n\n### disableDotRule\nDisables the dot rule mentioned above:\n\n> […] is not a direct file request, i.e. the requested path does not contain a `.` (DOT) character […]\n\n```javascript\nhistory({\n  disableDotRule: true\n})\n```\n","maintainers":[{"name":"bripkens","email":"bripkens@gmail.com"}],"time":{"modified":"2022-06-27T06:53:06.600Z","created":"2013-05-18T13:47:54.775Z","0.0.1":"2013-05-18T13:47:58.244Z","0.0.2":"2013-07-15T20:04:56.899Z","0.0.3":"2013-07-16T20:02:55.758Z","0.0.4":"2013-07-16T20:13:33.457Z","0.0.5":"2014-10-01T16:54:01.659Z","1.0.0":"2015-04-11T06:06:30.740Z","1.1.0":"2015-04-16T06:38:05.983Z","1.2.0":"2016-03-21T19:12:23.525Z","1.3.0":"2016-08-07T06:53:57.855Z","1.4.0":"2017-10-13T05:05:34.920Z","1.5.0":"2017-11-09T16:48:45.095Z","1.6.0":"2019-01-08T08:33:00.369Z","2.0.0":"2022-06-27T06:53:06.538Z"},"author":{"name":"Ben Ripkens","email":"bripkens@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/bripkens/connect-history-api-fallback.git"},"homepage":"https://github.com/bripkens/connect-history-api-fallback#readme","bugs":{"url":"https://github.com/bripkens/connect-history-api-fallback/issues"},"license":"MIT","readmeFilename":"README.md","contributors":[{"name":"Craig Myles","email":"cr@igmyles.com","url":"http://www.craigmyles.com"}],"users":{"jabbrwcky":true,"sabrina.luo":true,"travm":true,"staydan":true,"panlw":true,"lore-w":true,"largepuma":true,"ldq-first":true,"yeming":true,"serge-nikitin":true,"tardis103":true,"fakefarm":true,"muzi131313":true,"hewenxuan":true,"ptspzy":true,"edwardxyt":true,"losymear":true,"he313572052":true,"xbilek18":true,"yangteng":true}}