{"_id":"roadtrip","_rev":"30-ad836515240d0c27af64b0d076aabbb3","name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","dist-tags":{"latest":"0.6.2"},"versions":{"0.1.0":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.1.0","license":"MIT","main":"dist/roadtrip.js","jsnext:main":"src/roadtrip.js","devDependencies":{"gobble":"^0.7.9","gobble-babel":"^4.0.1","gobble-cli":"^0.3.5","gobble-esperanto-bundle":"^0.1.7","gobble-sorcery":"^0.2.5"},"scripts":{"build":"gobble build -f dist","prepublish":"npm run build"},"gitHead":"6c1c33367fae422254c647c6677fd467a8c532d8","_id":"roadtrip@0.1.0","_shasum":"5f5086de0ded3080731d15d28f03bc930581f182","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"5f5086de0ded3080731d15d28f03bc930581f182","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.1.0.tgz","integrity":"sha512-TBilUVp0W/wKCh0PG/S2lbiARElqXUX+cZmbH02tZOyl34/A3xO+WPi78kKhOqsNalJ0kwn+2Bk0SZWxOlEl5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6AB9GqLCTO7Qhm2R3dekd+mjG0uEVJZ+BXcS/fIA8ZAiEAxNk7ST6ahfLI3e6W/KXJBfKhl0LkQBXyhTBiXCM54JE="}]},"directories":{}},"0.1.1":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.1.1","license":"MIT","main":"dist/roadtrip.js","jsnext:main":"src/roadtrip.js","devDependencies":{"gobble":"^0.7.9","gobble-babel":"^4.0.1","gobble-cli":"^0.3.5","gobble-esperanto-bundle":"^0.1.7","gobble-sorcery":"^0.2.5"},"scripts":{"build":"gobble build -f dist","prepublish":"npm run build"},"gitHead":"b3743b08c8e860ba35c712e86b52a07dd1afef85","_id":"roadtrip@0.1.1","_shasum":"751a3585e4f1694b88e926518889620b9f80c2e0","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"751a3585e4f1694b88e926518889620b9f80c2e0","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.1.1.tgz","integrity":"sha512-9PsgnHQmfuY2rK9whPRQyI/R+lwvh8M59j7qUkte156rdRPyhKj+PyQF1uCebpoQw2g/9RHm1oR0ZkM3Wz3vcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH188HDXoFq4J/lqoLMFK0baY0bVXMxPfvikquOAbyK0AiEAkQctP39P9ZbnqDOeXwpg4cw//BDSlTDo5DGjGvqhk/8="}]},"directories":{}},"0.1.2":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.1.2","license":"MIT","main":"dist/roadtrip.js","jsnext:main":"src/roadtrip.js","devDependencies":{"gobble":"^0.7.9","gobble-babel":"^4.0.1","gobble-cli":"^0.3.5","gobble-esperanto-bundle":"^0.1.7","gobble-sorcery":"^0.2.5","jsdom":"^4.0.4","mocha":"^2.2.1","simulant":"^0.1.3"},"scripts":{"test":"mocha","build":"set -e; npm test; mkdir -p dist; rm -rf dist/*; cp .tmp/roadtrip.* dist/; rm -rf .tmp","prepublish":"npm run build"},"gitHead":"62b05398ef99ff923a650f2333b581f2f558d14b","_id":"roadtrip@0.1.2","_shasum":"ff793e324570e910b30ffd2a798174bbdb781872","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"ff793e324570e910b30ffd2a798174bbdb781872","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.1.2.tgz","integrity":"sha512-G+U50tm3BOp47j8+caa4jeU1KTnoN4PLINk1vNEAHT+wglcxn+6BvvB8CSBurby7+Gbb52lrU1XW8+obPxjcRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvGviAR2GS61gjlwrOMvf3gCOuEnLPiAbTh0IXcfRQFAiAniiAXCn/iVWlcTEtn4k43RtVgoQw3CCkCZ8AnnRFetg=="}]},"directories":{}},"0.1.3":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.1.3","license":"MIT","main":"dist/roadtrip.js","jsnext:main":"src/roadtrip.js","devDependencies":{"gobble":"^0.7.9","gobble-babel":"^4.0.1","gobble-cli":"^0.3.5","gobble-esperanto-bundle":"^0.1.7","gobble-sorcery":"^0.2.5","jsdom":"^4.0.4","mocha":"^2.2.1","simulant":"^0.1.3"},"scripts":{"test":"mocha","build":"set -e; npm test; mkdir -p dist; rm -rf dist/*; cp .tmp/roadtrip.* dist/; rm -rf .tmp","prepublish":"npm run build"},"gitHead":"cb6b8c43698c8df47a6e22237ecf79f2fdfd84fc","_id":"roadtrip@0.1.3","_shasum":"7a21405d983fad096feaf39b73c45024437c4327","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"7a21405d983fad096feaf39b73c45024437c4327","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.1.3.tgz","integrity":"sha512-wLGKjIc87QyAEuC6wi1pA2FhP4tj4JNWil3WmeveaJYyXYJn1sA2yZZizlrcHfDXS8LXILwYyJYMOM97U+f7Fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAq3ALjjc9h4nPfaS0/hLH2t9B0SW0HDp/gDCNIYnjcGAiA+xvE3eAaogpFneqFGHUE0BCQDylpznyxvN79ZpB8Sgw=="}]},"directories":{}},"0.1.4":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.1.4","license":"MIT","main":"dist/roadtrip.js","jsnext:main":"src/roadtrip.js","devDependencies":{"gobble":"^0.7.9","gobble-babel":"^4.0.1","gobble-cli":"^0.3.5","gobble-esperanto-bundle":"^0.1.7","gobble-sorcery":"^0.2.5","jsdom":"^4.0.4","mocha":"^2.2.1","simulant":"^0.1.3"},"scripts":{"test":"mocha","build":"set -e; npm test; mkdir -p dist; rm -rf dist/*; cp .tmp/roadtrip.* dist/; rm -rf .tmp","prepublish":"npm run build"},"gitHead":"43c0b797345d06c3f796a070f4d97c3ee1918eb4","_id":"roadtrip@0.1.4","_shasum":"2738b6ca405e47418ef790de7c6c53efb0e17671","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"2738b6ca405e47418ef790de7c6c53efb0e17671","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.1.4.tgz","integrity":"sha512-/p7eoiHoNwdmEF6tTE+z63tTH4zSVC3E6lkYuHu2vE43RON4ESgT1j6LsCiTkFNBHpV/YIxhhWOhHBKRbkm4UQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHfI0P04IJozRfhgTqexNZdF8mRc42+2CPwWPhC7JePAIgEdzQVEGhftwLqJ+e5sIDwV/dViIlYyyLqBLmWctMyUc="}]},"directories":{}},"0.1.5":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.1.5","license":"MIT","main":"dist/roadtrip.js","jsnext:main":"src/roadtrip.js","devDependencies":{"gobble":"^0.7.9","gobble-babel":"^4.0.1","gobble-cli":"^0.3.5","gobble-esperanto-bundle":"^0.1.7","gobble-sorcery":"^0.2.5","jsdom":"^4.0.4","mocha":"^2.2.1","simulant":"^0.1.3"},"scripts":{"test":"mocha","build":"set -e; npm test; mkdir -p dist; rm -rf dist/*; cp .tmp/roadtrip.* dist/; rm -rf .tmp","prepublish":"npm run build"},"gitHead":"2b5404f9493cceb787420964b3353da3f6ac4abf","_id":"roadtrip@0.1.5","_shasum":"4af531014aac69bf8ccffcd243d9ef8eadec4ac6","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"4af531014aac69bf8ccffcd243d9ef8eadec4ac6","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.1.5.tgz","integrity":"sha512-lKAl0j4yaNwmbMCYfGkjN4cwHVuTx2bu5DATdunSzngNELifYHYYn2DfhUtAWG3pzIYKCwHLSMDmr/GLbApvig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcgGk7TDKgV25LSPY8xbGRAJh+yANvSTcU+WRRaeYNLAiEA5gv33ILBhn5Un9wd8do9vaiNcn3RYOnwHg/p/nqVk1I="}]},"directories":{}},"0.1.6":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.1.6","license":"MIT","main":"dist/roadtrip.js","jsnext:main":"src/roadtrip.js","devDependencies":{"gobble":"^0.7.9","gobble-babel":"^4.0.1","gobble-cli":"^0.3.5","gobble-esperanto-bundle":"^0.1.7","gobble-sorcery":"^0.2.5","jsdom":"^4.0.4","mocha":"^2.2.1","simulant":"^0.1.3"},"scripts":{"test":"mocha","build":"set -e; npm test; mkdir -p dist; rm -rf dist/*; cp .tmp/roadtrip.* dist/; rm -rf .tmp","prepublish":"npm run build"},"gitHead":"76bc9e7e138d30792930d85f563622556901da5e","_id":"roadtrip@0.1.6","_shasum":"d7323193404a35b6238ea37203e42677a3aa5886","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"d7323193404a35b6238ea37203e42677a3aa5886","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.1.6.tgz","integrity":"sha512-f6pUrhwPDAW5L4igF0+EDYE6pEynijNidyaYQlmV/ajN3I5dhdWE1m9G/2XVuJohCrJBC3CZNau1L/wG1seQBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJb5QwWmaeH5WE/ohGHaKoY+GlSptLJ62Eah5Tjd6lRgIhALAjstt2xCgdwGGdjXukdNJhpfCxHcYj278ChFsN3plF"}]},"directories":{}},"0.1.7":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.1.7","license":"MIT","main":"dist/roadtrip.js","jsnext:main":"src/roadtrip.js","devDependencies":{"gobble":"^0.10.2","gobble-babel":"^5.1.0","gobble-cli":"^0.3.5","gobble-rollup":"^0.2.0","jsdom":"^4.0.4","mocha":"^2.2.1","simulant":"^0.1.3"},"scripts":{"test":"mocha","pretest":"npm run build","build":"gobble build -f dist","prepublish":"npm run build"},"gitHead":"62924306d3abc18a7a63f9b3f9814752138081a3","_id":"roadtrip@0.1.7","_shasum":"5370baa2a37c94e07835dfc10b99a7449efe95a7","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"5370baa2a37c94e07835dfc10b99a7449efe95a7","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.1.7.tgz","integrity":"sha512-B6ibwFptTZ7pRsjmGudmKSYyjjmpjqHRCjPJcIl2Ldu3CaTYRIrcETU6ZETVrbYFg0Z4KbCRz+2Y80hCGUBtWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbDG48a/7yv+D/VmDeNWBm+8D+JjOVsxjkRCAeaIycTQIga/Dh/Wf96T59w6zV/lchRPgbNek1yE2WTwWJJSfHlQI="}]},"directories":{}},"0.2.0":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.2.0","license":"MIT","main":"dist/roadtrip.umd.js","jsnext:main":"dist/roadtrip.es6.js","devDependencies":{"gobble":"^0.10.2","gobble-cli":"^0.3.5","gobble-rollup-babel":"^0.6.1","jsdom":"^4.0.4","mocha":"^2.2.1","simulant":"^0.1.3"},"scripts":{"test":"mocha","pretest":"npm run build","build":"gobble build -f dist","prepublish":"npm test"},"files":["dist","src","README.md"],"gitHead":"60e32729f761222e11efc7d7fe9e8a3aaf0e02da","_id":"roadtrip@0.2.0","_shasum":"fdb63e7e6e357fc533bab742ebcb46556c2b07b8","_from":".","_npmVersion":"2.5.1","_nodeVersion":"4.1.2","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"dist":{"shasum":"fdb63e7e6e357fc533bab742ebcb46556c2b07b8","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.2.0.tgz","integrity":"sha512-/tDh9I/tGGJQFDga0GijrZbQuEOYdpAiwyBBH3gvVMZ0WTpa71anqflmehe93q+TmQph2Kx16IHByXjciY/AQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBW19Q/pcQlbT5yb/LF9XIKZC3VpXf7FtTDAZbeddhqAiEA32+DCWmXqxv/93soVbvQSk8sX4H39BxSinIATQbJ5Tc="}]},"directories":{}},"0.3.0":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.3.0","license":"MIT","main":"dist/roadtrip.umd.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"babel-preset-es2015-rollup":"^1.1.1","eslint":"^1.10.3","jsdom":"^8.0.2","mocha":"^2.2.1","rollup":"^0.25.3","rollup-plugin-babel":"^2.3.9","simulant":"^0.2.0"},"scripts":{"test":"mocha","pretest":"npm run build:umd","build":"npm run build:umd && npm run build:es","build:umd":"rollup -c -f umd -o dist/roadtrip.umd.js","build:es":"rollup -c -f es6 -o dist/roadtrip.es.js","prepublish":"npm run lint && rm -rf dist && npm test && npm run build:es","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"e6e109da7fbd02416ad5a23c4cb86346da576bb3","_id":"roadtrip@0.3.0","_shasum":"c66f0d0b36ffbe4402b7d62486b97ae1aa4942f6","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"c66f0d0b36ffbe4402b7d62486b97ae1aa4942f6","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.3.0.tgz","integrity":"sha512-iBhv7YX96wBvMSTkot9yT2XlTXfjwa5BPV5z2HWRNbDrmyxvCVVQ6EgMULG7CLlvJDV+kEJHdFoSoqCUujZNPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFub7p258u47ardPdNcz9XnEDh4vdWMyM47CRt4bX4EgIgSCEJpbJeYeGJx7nWAKF/s/RHlJ+19SFsI9Q2Qdyx/mM="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/roadtrip-0.3.0.tgz_1455125639363_0.649719245499"},"directories":{}},"0.3.1":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.3.1","license":"MIT","main":"dist/roadtrip.umd.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build:umd","build":"npm run build:umd && npm run build:es","build:umd":"rollup -c -f umd -o dist/roadtrip.umd.js","build:es":"rollup -c -f es6 -o dist/roadtrip.es.js","prepublish":"npm run lint && rm -rf dist && npm test && npm run build:es","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"0934ed1e6e864fb919e46262d2b005a629d97b14","_id":"roadtrip@0.3.1","_shasum":"7d45f5365df20b404d7ae2b42055aa12f1f5cc1f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"7d45f5365df20b404d7ae2b42055aa12f1f5cc1f","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.3.1.tgz","integrity":"sha512-1BKBGqnMrW0gEE+7KkbZ75ad3nVtnB/kYUlxWrh1rq8o94JbphGjBsl63pSuU9WzKnbn02TuixMuaTWvqsGUZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf+Vg3P/loUejLBSTVtJQJ5WHRdVU5DeWULwIrxUE1MwIgbGicfWuFxfJ2X+uCZHFEhphxGC6ouXWFOGClcpL2WJQ="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/roadtrip-0.3.1.tgz_1475935999199_0.7114500598981977"},"directories":{}},"0.3.2":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.3.2","license":"MIT","main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"ec089a4b8462a5a14ff1b712856b9f0b098eca0d","_id":"roadtrip@0.3.2","_shasum":"92465fbc3703592ff2ea2f376cee2a78872ad661","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.2.1","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"92465fbc3703592ff2ea2f376cee2a78872ad661","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.3.2.tgz","integrity":"sha512-zHVetj7aQU+ckl2q29hTZktS41wlSpaMhLHZMyTWf8UpTHQ9/ymUlsKHX2MRenWCbSoCSJBBYcWx3VJMv6e45A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGd3WEzMuF7qZCLsuDhOz6KrKj7jdrZMo162Jlx7X7FiAiB3kFUydEVdDM/vJnfsRVmrvLCG0qTNxNL896oLU8PCrw=="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/roadtrip-0.3.2.tgz_1488582735921_0.13016515946947038"},"directories":{}},"0.3.3":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.3.3","license":"MIT","main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"3033024384ab829520f16028504cfba79a0072ae","_id":"roadtrip@0.3.3","_shasum":"6cc0bb01088031959d263049cdad5d6a02146653","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"6cc0bb01088031959d263049cdad5d6a02146653","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.3.3.tgz","integrity":"sha512-zBGO+V6pn0hvky49Y17m0247jLCSBP7Bn6CCSGpUvo1Nu9S4XRAanCll/Hr8AilsMZ/IfzKbJHjTNL4aXl+ELQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC53EBFjW3q4yyK9293zptqUpv60Uyja3F3qZK4rvcGDwIgS+BGXbrDgFa6CPWWziqSGkNnbvZ3fPT4M0S+zVpMr5w="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/roadtrip-0.3.3.tgz_1488899263404_0.7623867359943688"},"directories":{}},"0.3.4":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.3.4","license":"MIT","main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"27778faa42ba98d5afae19f334180439625fe229","_id":"roadtrip@0.3.4","_shasum":"9b13adb763a874d3c3398f1a6ee4efa817d34d4e","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"9b13adb763a874d3c3398f1a6ee4efa817d34d4e","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.3.4.tgz","integrity":"sha512-UPWPzNFNWQbZIeNELmwSRBbOLms012oVzZZ8fm2JcTHATuWsSFRZuBQa9ru30j0jjWFRGGtwZZpA9i6mnNhmjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbsDBgwBXCGDxMGCfx3pm1BkHBxO1j9jkBErIrWEp+5AIgP2o3ZknECZv2i+j7bHSdB6oeDY9g2VNuUsF2KjWykh8="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/roadtrip-0.3.4.tgz_1489548045200_0.8641768114175647"},"directories":{}},"0.4.0":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.4.0","license":"MIT","main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"6d8ab6faee9579b106e875b6c83a17e411edd96d","_id":"roadtrip@0.4.0","_shasum":"1ad8d098f08a6144c972f7a90e5004cc0b5bd046","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"1ad8d098f08a6144c972f7a90e5004cc0b5bd046","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.4.0.tgz","integrity":"sha512-wYXdf4buekqXzbLX4sDsDnlbHrpOk6OgA3LtWK8ZI3/WX0PcW5TI8/aeAhGfTOXy4DQexyUaK4Gzp+HrOaGCpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDL7I9L640JtKVfS+wxeM43YFiYPX1+X7irlzfp1Fhn5AIhAKxevoTeBP7JTQ6CzZ3b5zhAoShSJ3xe18zLet04gvTt"}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/roadtrip-0.4.0.tgz_1490406274152_0.8079745080322027"},"directories":{}},"0.4.1":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.4.1","license":"MIT","main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"72e4cdbd6184707b07a893c7a104758c3f245a0a","_id":"roadtrip@0.4.1","_shasum":"5ea9e2f248c64e0995ee5548fe058a3f4c4caa06","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"5ea9e2f248c64e0995ee5548fe058a3f4c4caa06","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.4.1.tgz","integrity":"sha512-3yD129mqQ8libCYrxknhpvOMgbF6BSa/az7OxZbFggciARK/WzQ04JzY9TPL4I0kxc88DPLiLfVM0m2tGeObgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEF9rcb2s1M9UgUhDnjKIjpKyRbOAnbeLLRHeqE370KnAiATSnxkFOFLpy1Pu9O3n6iYsmqlqNeZmyDfG/77u+3hTw=="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/roadtrip-0.4.1.tgz_1490407334614_0.5084107129368931"},"directories":{}},"0.5.0":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.5.0","license":"MIT","main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"c338599fc67cb54c5df9e303b74395312d8fcda4","_id":"roadtrip@0.5.0","_shasum":"ac1837ffdc97fcfa78cadf853538c6b9c4485282","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"ac1837ffdc97fcfa78cadf853538c6b9c4485282","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.5.0.tgz","integrity":"sha512-1LQ+j3aYocIKFxgEwNHZLUT78kMWSKnumVvr0VHQeHN+/gT/uJcQ3pfsE8cZ8IdR/M0qdvU2JceX9mP6RzDZ2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6PXD7/6r1N9oQYgZkllc0bS7TmJs0GAYM1/Wm1/ofNgIgdwy4Du9oLpZLBPvj96XePrn/wij8us5nsBX8hcs/bqA="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/roadtrip-0.5.0.tgz_1493756975766_0.7269784554373473"},"directories":{}},"0.5.1":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.5.1","license":"MIT","main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"b75779d59bcb1f8f24ace113d847579617ac6437","_id":"roadtrip@0.5.1","_shasum":"a422836368af0636334f3dc340f624fb9aba76fd","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"a422836368af0636334f3dc340f624fb9aba76fd","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.5.1.tgz","integrity":"sha512-d44sk2iT/rNpTuDrv0kQ6j/gls+TE66vI6AilKmdICFBKKjrbyvwbF8ELGCTNT5yXMfrPKJHTEo30z7PI7T8ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHm7a269D50imJGIBaU2cqQhpccbqt31zwArdmPYaJ4zAiAWT3Swb6qIY4YHIYfYswvmgyTLU0Z0+8i1jIwoDThFZQ=="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/roadtrip-0.5.1.tgz_1493845116415_0.04873090353794396"},"directories":{}},"0.6.0":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.6.0","license":"MIT","main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"7496716a54b3b5dba57adc55a96931f144d85635","_id":"roadtrip@0.6.0","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"integrity":"sha512-zth/kD2z7xOb9rXLbhDswKW5J1p1EJ/xL4KQh8TzGkMP/l3IQFkgLYgQGenUhXKAtV4RH1WtxEkEV712c/avNA==","shasum":"a596f6a15efbdcb01e15e11a978165a08e7d26ec","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCMv0l4b0y6oFGcD13c09xQL8vbun5G9hdTi/eQw1ZPAiB5zNnveCXAwEiM11E/6NHklXBwYaAKDNT1Ts/HiR0Wcw=="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/roadtrip-0.6.0.tgz_1510719806119_0.44743256852962077"},"directories":{}},"0.6.1":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.6.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/roadtrip.git"},"main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"files":["dist","src","README.md"],"gitHead":"3eea272cf78daba7212c179a339f9df0dde85740","bugs":{"url":"https://github.com/Rich-Harris/roadtrip/issues"},"homepage":"https://github.com/Rich-Harris/roadtrip#readme","_id":"roadtrip@0.6.1","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"integrity":"sha512-jcx/KClqLDD22vJojpeWaupoGkpmPLoMqOSGtDp+UQgh+bCk3nXC1+H/Smq8Ly8UZvIsWe6/S0aj3VOi8ulwRQ==","shasum":"f9c737a3c4d57e010c10f7cda61d52fa1c874d0a","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.6.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJbLSLhwjZuI93ZGyBVcgcaZfnMMX9wtcdBxNLl/gtZAiEAg6pl/1phML5FBCVFGQOn5NjJVNJEmL6ucZaPjprWQAM="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/roadtrip-0.6.1.tgz_1515458021094_0.3213254737202078"},"directories":{}},"0.6.2":{"name":"roadtrip","description":"Client-side routing library. It's about the journey, not just the destination","author":{"name":"Rich Harris"},"version":"0.6.2","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/roadtrip.git"},"main":"dist/roadtrip.umd.js","module":"dist/roadtrip.es.js","jsnext:main":"dist/roadtrip.es.js","devDependencies":{"console-group":"^0.3.3","eslint":"^3.7.1","eslint-plugin-import":"^2.0.0","jsdom":"^9.6.0","mocha":"^3.1.0","rollup":"^0.36.1","rollup-plugin-buble":"^0.14.0","rollup-watch":"^3.2.2","simulant":"^0.2.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","dev":"rollup -c -w","prepublish":"npm run lint && rm -rf dist && npm test","lint":"eslint src"},"gitHead":"6dd2303b245e4b96b52269980a666e1b2fd79db7","bugs":{"url":"https://github.com/Rich-Harris/roadtrip/issues"},"homepage":"https://github.com/Rich-Harris/roadtrip#readme","_id":"roadtrip@0.6.2","_shasum":"e862c95f5b645e33e16161a33f13b2dd43fdacaf","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.11.4","_npmUser":{"name":"kiho","email":"kihoc22@gmail.com"},"dist":{"shasum":"e862c95f5b645e33e16161a33f13b2dd43fdacaf","tarball":"https://registry.npmjs.org/roadtrip/-/roadtrip-0.6.2.tgz","integrity":"sha512-YE7Hp/LfsYxZk4efCzyeV9SAsZbZCcAERbog092ac9F4gtIdcuau8pn14/8zrOSBIBf61cnYu7WkicF3/w2v+Q==","fileCount":11,"unpackedSize":42760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcxivvCRA9TVsSAnZWagAAKkoP/jbQ451TdNq1kNNKBZew\nTtBXY4v0D2p8bEkkqT2dNzF5yRZXPjznjyQ0ANYvDzuMNH8iPtV2GF03cbXO\nvQae2EJBKAOfUwhjYlIvxkJ7G/LoKkADwzpI/hWXw4Z1zOC1UVzM24zYSSX+\nzXcGy0dQmw6wTC9UoCd/iWeHV7PmGES4sgHWWQO25IUHWgiWzlAbrzSDHwjC\nMokhWTgckL85F30q3YhKMzTFlBZOzTnRX/GYxK3E9EyBR8IHwV5mKBhvsjgS\n1UQLqvGOnwmyJIsGRGEwXviGa18gOzhaXLQcBYIzcHRumgpAgud9p28JUC1r\nSzk2msLzKt3w6vrL36D3Z639EL+7CQcw3Nf43Tb4JN6G15MLSsTeim29qDlM\nEFYv5twESyXVgNmt/E1WFg1gYDxMMalDl4QuslpWSRrwwj4cm6iGkvayEru+\nGSof+OJ10jIT3omMw7FGHUa9u7DZLageKwo+0lo89VWmFBdRc+WpihpyHcmP\nZUlH7TOIEb+Od/zCVqGL1h0T8FilqlUxHop2Quq+ekbFBosSUgY5KsGAazPX\ncFxV2LymyQ8hGAsrpUNe+DGGQ2tLjOqMt4vvD4k/jH8Y1JyefnQwXfl3kCD5\nHXV/KlDXiUtHJq2rqhYxYk5ZvQR25+wRvX4V4HoVtqEB4V5ufIqcvbqnNJaC\nI0NA\r\n=51FE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwKq+3kyIjeBAd5ZaFRSW4OUXNhLm/6nW9ijEhSGXyIAiAsn/UPmAJ9KNg35jYaDKAWgyl0mgcXjbRApMkECGeVYw=="}]},"maintainers":[{"email":"kihoc22@gmail.com","name":"kiho"},{"email":"mauriciokishi@gmail.com","name":"mrkishi"},{"email":"richard.a.harris@gmail.com","name":"rich_harris"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/roadtrip_0.6.2_1556491246975_0.6854624861557941"},"_hasShrinkwrap":false}},"readme":"# roadtrip\n\nRoadtrip is a client-side web app routing library that understands it's about the journey, not just the destination. If you, like me, need a tiny view-agnostic routing library that handles asynchronous route transitions sensibly, read on.\n\n```bash\nnpm install roadtrip\n```\n\n\n## Getting there is half the fun\n\nWith a typical routing library, you register a series of route handlers that are called whenever the user navigates to a new route. But the handler isn't given any information about where the user navigated *from*. This forces you to jump through some ridiculous hoops.\n\nSuppose you're building a contacts app. When you navigate from the default list view to a specific contact, you want the old screen to slide out to the *left* while the new screen slides in from the *right*. When you start editing one of the contact's details, the same thing happens - the old screen slides out to the left, while the editing screen slides in from the right.\n\nWhat happens when we're done editing, or hit the back button? It makes no sense for the contact screen to slide in from the right again, when a moment ago it slid out to the left. So our `/:contact` route handler needs to know where we've come from, so it can select the right transition. But most routing libraries treat each route as an isolated moment in time, making that unnecessarily difficult.\n\nBy extension, there's no support given for another common use case, in which you need to teardown the current route in an asynchronous fashion before creating the new one. And navigating from `/foo` to `/foo` isn't treated as a noop like it should be.\n\nMaybe I've fundamentally misunderstood the problem. If someone can point me to a decent router that solves these issues, let me know so that I can stop working on this one.\n\n\n## Using roadtrip\n\nDon't get too attached to this API, it will almost certainly change.\n\n\n### Basic usage\n\n```js\nimport roadtrip from 'roadtrip';\n\nroadtrip\n  // the home screen of our contacts app\n  .add( '/', {\n    enter: function ( route, previousRoute ) {\n      route.view = displayAllContacts({\n      \t// if this is the first route we visit (i.e. it's the\n      \t// page the user lands on), `route.isInitial === true`\n      \tslideInFrom: route.isInitial ? null : 'left'\n      });\n\n      // roadtrip captures scroll position on every navigation,\n      // so that you can programmatically scroll to the right\n      // part of the page if the user navigates back/forwards\n      window.scrollTo( route.scrollX, route.scrollY );\n    },\n\n    leave: function ( route, nextRoute ) {\n      route.view.teardown({\n      \tslideOutTo: 'left'\n      });\n    }\n  })\n\n  // individual contact screen\n  .add( '/:id', {\n    enter: function ( route, previousRoute ) {\n      route.view = displayContact({\n      \t// the `route` object has `params` and `query` properties\n      \tid: route.params.id,\n\n      \t// if the previous route was the home screen, slide in\n      \t// from the right, otherwise slide in from the left\n      \tslideInFrom: route.isInitial ? null :\n      \t  previousRoute.matches( '/' ) : 'right' : 'left';\n      });\n    },\n\n    update: function ( route ) {\n      route.view.set({\n        id: route.params.id\n      });\n    },\n\n    leave: function ( route, nextRoute ) {\n      route.view.teardown({\n      \tslideOutTo: nextRoute.matches( '/' ) : 'right' : 'left'\n      });\n    }\n  })\n\n  // the editing screen\n  .add( '/:id/edit', {\n    enter: function ( route, previousRoute ) {\n      route.view = displayContactEditor({\n      \tid: route.params.id,\n        slideInFrom: route.isInitial ? null : 'right';\n      });\n    },\n\n    leave: function ( route, nextRoute ) {\n      route.view.teardown({\n      \tslideOutTo: 'right'\n      });\n    }\n  })\n\n  // Calling roadtrip.start() activates the current route\n  .start({\n    fallback: '/' // if the current URL matches no route, use this one\n  });\n```\n\n### Asynchronous route transitions\n\nIf you need to do some asynchronous work on leaving or entering a route, return a promise from the handler:\n\n```js\nfunction wait ( ms ) {\n  return new Promise( function ( fulfil ) {\n    setTimeout( fulfil, ms );\n  });\n}\n\nroadtrip\n  .add( '/foo', {\n    enter: function ( route ) {\n      // if the user clicks a link for `/bar` in the meantime\n      // roadtrip will navigate to `/bar` as soon as the promise\n      // resolves, unless, in the remaining milliseconds, they\n      // decide to navigate to `/baz` instead\n      return wait( 1000 );\n    },\n\n    leave: function ( route ) {\n      // the URL in the address bar changes to that of the new\n      // route immediately, but the new route's `enter` handler\n      // is not called until this promise resolves\n      return wait( 1000 );\n    }\n  })\n\n  .add( '/bar', ... )\n  .add( '/baz', ... )\n  .start();\n```\n\nIf, on navigating to `/bar`, you want to kick off some work (e.g. loading the data you're going to need) immediately, regardless of any asynchronous `leave` handler, you can do that with `beforeenter`.\n\n```js\nroadtrip\n  .add( 'foo', ... )\n\n  .add( '/bar', {\n    beforeenter: function ( route ) {\n      route.data = fetch( '/data.json' )\n        .then( function ( response ) { return response.json(); });\n    },\n\n    enter: function ( route ) {\n      // route.data is a promise, because we set it in\n      // `beforeenter`\n      return route.data.then( renderView );\n    }\n\n    // note: the `leave handler is optional!\n  })\n\n  .add( '/baz', ... )\n  .start();\n```\n\nIf `beforeenter` returns a promise, the `enter` handler will only be called once both it and the promise returned from the previous route's `leave` handler (if any) have resolved.\n\n## Navigating programmatically\n\nYou can navigate to a new route programmatically:\n\n```js\nroadtrip.goto( newUrl );\n```\n\nThis will use `history.pushState()` - if you need to use `history.replaceState()` instead (e.g. you're redirecting), pass in an option:\n\n```js\nroadtrip.goto( newUrl, { replaceState: true });\n```\n\nTo redirect to a different route *without* updating the URL, use the `invisible` option:\n\n```js\nroadtrip.goto( '/page/1', { invisible: true });\n```\n\n\n## Bring your own polyfill\n\nThis library assumes your browser supports the HTML5 history API, and Promises. You can polyfill the history API with [devote/HTML5-History-API](https://github.com/devote/HTML5-History-API) (I haven't tried this, would welcome feedback from anyone who has), and you can provide a [Promises/A+ compliant](https://promisesaplus.com/) `Promise` object with `roadtrip.Promise === Promise` (otherwise it will use `window.Promise`).\n\n\n## Building and testing\n\nFor testing, roadtrip uses [jsdom](https://github.com/tmpvar/jsdom), which requires [node.js](https://nodejs.org/) v4 or later.\n\nTo test, run `npm test`. To build to `./dist`, run `npm run build` (this will fail if the tests fail).\n\n\n\n## License\n\nMIT.\n","maintainers":[{"email":"kihoc22@gmail.com","name":"kiho"},{"email":"mauriciokishi@gmail.com","name":"mrkishi"},{"email":"richard.a.harris@gmail.com","name":"rich_harris"}],"time":{"modified":"2022-06-26T13:43:12.008Z","created":"2015-03-22T01:47:32.017Z","0.1.0":"2015-03-22T01:47:32.017Z","0.1.1":"2015-03-22T02:56:19.216Z","0.1.2":"2015-03-23T12:39:41.029Z","0.1.3":"2015-03-23T14:06:20.679Z","0.1.4":"2015-04-05T04:06:18.773Z","0.1.5":"2015-04-05T18:29:38.625Z","0.1.6":"2015-04-06T15:17:12.248Z","0.1.7":"2015-05-29T18:49:03.230Z","0.2.0":"2015-10-25T12:18:09.275Z","0.3.0":"2016-02-10T17:34:02.780Z","0.3.1":"2016-10-08T14:13:19.867Z","0.3.2":"2017-03-03T23:12:17.933Z","0.3.3":"2017-03-07T15:07:45.442Z","0.3.4":"2017-03-15T03:20:45.929Z","0.4.0":"2017-03-25T01:44:36.206Z","0.4.1":"2017-03-25T02:02:15.261Z","0.5.0":"2017-05-02T20:29:36.678Z","0.5.1":"2017-05-03T20:58:37.478Z","0.6.0":"2017-11-15T04:23:26.352Z","0.6.1":"2018-01-09T00:33:42.117Z","0.6.2":"2019-04-28T22:40:47.168Z"},"author":{"name":"Rich Harris"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/Rich-Harris/roadtrip#readme","repository":{"type":"git","url":"git+https://github.com/Rich-Harris/roadtrip.git"},"bugs":{"url":"https://github.com/Rich-Harris/roadtrip/issues"}}