{"_id":"ampersand-view-switcher","_rev":"51-b40a1c543bac21d6448ced0de145e3ac","name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","dist-tags":{"latest":"3.0.0"},"versions":{"0.1.0":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"0.1.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"tape":"2.x.x","precommit-hook":"0.x.x","ampersand-view":"","run-browser":""},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/main.js"},"dependencies":{"precommit-hook":"~0.3.10"},"_id":"ampersand-view-switcher@0.1.0","dist":{"shasum":"f626b61d5e1f4ea54bf343ce88d9b32a7dcfba52","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-0.1.0.tgz","integrity":"sha512-dSuceg0yfsVGpOcyBdTOAEF9eKWIPZP3AbNDPJMTZFrgKgd093K/W8xpYWGaWFTlWFo/m3sfIs+ylgJ16t5OFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkZgbORhZ3IBAm5Fx5E8mps1U/yz/HE97ggpsE4tb6ogIhAPNYMY75J4a9jLPYSvzNJIvr0QqHfTuwWNLrxBB7FGi5"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"directories":{}},"0.2.0":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"0.2.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"tape":"2.x.x","precommit-hook":"0.x.x","ampersand-view":"","run-browser":""},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/main.js"},"dependencies":{"precommit-hook":"~0.3.10"},"_id":"ampersand-view-switcher@0.2.0","dist":{"shasum":"a2111150840a138d318a54196ef7516720e42962","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-0.2.0.tgz","integrity":"sha512-XVp6KM6LHhfdXSB+0lJ+lclKbFHVwY931U/89WTGRG+J1OCC/WP1ewnAnJeUnxNpM2UJ/QtlmafiIeCazP1gpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmU6VSqU9nZvixyU0bKGWwEBS5EsY0+0CmXbNV36JCOAiEAhubGmtztv1ErnkepGtUbZca266OY2kjA/K6saJUCiIA="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"directories":{}},"0.3.0":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"0.3.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"tape":"2.x.x","precommit-hook":"0.x.x","ampersand-view":"^4.2.1","run-browser":""},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/main.js"},"dependencies":{"precommit-hook":"~0.3.10","ampersand-view":"~4.2.1"},"_id":"ampersand-view-switcher@0.3.0","dist":{"shasum":"510edb7baf6d3b02b79c89f9875c1e14c5d3463d","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-0.3.0.tgz","integrity":"sha512-IhaLVv8rw1Hr6F13A4zLO7AKE5R6QqXtib4w1D0qTBY4xNpstOP8lJ7osCdidDNjjNcMGOdcmaa4ZNvkgnxzmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDd8ZM4JD3hpGB3eLrvh7SRNiW5IGADK4DsrKvS3BAMQwIhANGm6xeMrIBl2epRPjcHfNy8f7jfG9QaHUF8nu1Ebj8C"}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"directories":{}},"0.3.1":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"0.3.1","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"ampersand-view":"^4.2.1","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"dependencies":{"precommit-hook":"~0.3.10","ampersand-view":"~4.2.1"},"_id":"ampersand-view-switcher@0.3.1","_shasum":"f36d3c9b49bdecf3b94dcc04a8ddd27f2fe32c7a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"f36d3c9b49bdecf3b94dcc04a8ddd27f2fe32c7a","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-0.3.1.tgz","integrity":"sha512-aKM8AcVlIHm8GsIRCiTGBVAA8GZs/XsOAiqrEIli4ai9iHHkelPeQsOR+ybZ26xxSJiW/PgYXKcZbVGR7C6hPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHC0L8znsZ8EU3Q9/lxU46oITlxXNtUCeL90zzulO75oAiAgU/H5a1qeSyn1ZRFxCv2MBixCPiIobZMOuqI5ol9OVg=="}]},"directories":{}},"0.3.2":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"0.3.2","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"ampersand-view":"^4.2.1","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"dependencies":{"precommit-hook":"~0.3.10","ampersand-view":"~4.2.1"},"_id":"ampersand-view-switcher@0.3.2","_shasum":"953034736c6f45ff17aba79111b397eab9edcbad","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"953034736c6f45ff17aba79111b397eab9edcbad","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-0.3.2.tgz","integrity":"sha512-BLqTeaWdpcceMSFErLQnF55WQKL0sb/rQRSiUgzNdvTppOQqW8zJ45SAsGX9KJu1bH0jjKladr+WDUImFr6p8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCh/SeSQGoYpMnQse/ah+U/0Eem+ObNL/PFlXXAXYmFwAIgJW4Wv0fFMnQImj87iL8B5qFk43FYgZv4b0LGNF8WvUg="}]},"directories":{}},"1.0.0":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.0.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"dependencies":{"ampersand-view":"~4.2.1","precommit-hook":"~0.3.10"},"devDependencies":{"ampersand-view":"^4.2.1","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"541256f519a6fb2891538dc656b0748215d0d552","_id":"ampersand-view-switcher@1.0.0","_shasum":"ff0ce5cef5c301e646ed337b3671ca7a30a85ed0","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"ff0ce5cef5c301e646ed337b3671ca7a30a85ed0","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.0.0.tgz","integrity":"sha512-lJiSU6ByXzRq9B8SKYF3cO7VrHEN0/moylv0eQkQDvFpik/3/ITgkSaDqR9D+IGjGmGkURdYfyi0r/59AidUVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrPp/Q6Do2YIwWZ5Oyef0pNm5iNgwOnOuhveBGMV1BmAiEAzFpT/IhwGfsmQIYslqTby+4pVLFaKk3u+1kW/812dnA="}]},"directories":{}},"1.0.1":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.0.1","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"dependencies":{"ampersand-view":"~4.2.1"},"devDependencies":{"ampersand-view":"^4.2.1","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"_id":"ampersand-view-switcher@1.0.1","_shasum":"b0f485c8d8355fe92679cea0f9d17337ec4f523e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"b0f485c8d8355fe92679cea0f9d17337ec4f523e","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.0.1.tgz","integrity":"sha512-ae/nonWlsMzDp9K7N0lx9Zo9xg+LtsZ6JE9L6tmgmop1s+0jQbA5g/Q8+J+YU20wJE9h97wGfqRFhlXTjOmh5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2wXPsK3wmVGpWncSK8uP38Ok8RrP7azojqV4uUXZNzwIgcl6B7BlhUmBTrjNIpEI9c86f9V5xwFO/3df/eVZFjbM="}]},"directories":{}},"1.0.2":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.0.2","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"dependencies":{"ampersand-view":"~4.2.1"},"devDependencies":{"ampersand-view":"^4.2.1","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"e449bdb54435b688627d68756ae70ea15b8af9b7","_id":"ampersand-view-switcher@1.0.2","_shasum":"a936c77390c5e4ad1c7db6ef8264bf7fbd45fcdb","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"a936c77390c5e4ad1c7db6ef8264bf7fbd45fcdb","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.0.2.tgz","integrity":"sha512-l3ga/KIbAXPqfMgbvmLURnfap4tbXzCmhRIHvt7Q141uw0vJXLIrlzw7YxCP+5vlHlWtfjfCx20W0FRhnteRCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHP7xzMPj8/qSvb7aPIycdFPSyHdYY5RTG0FOpFnos6OAiEAsE1hJipSTIU1m2QnUQe4l8Ye+kB5UW7Bm3f52Yj1PSQ="}]},"directories":{}},"1.0.3":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.0.3","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"ampersand-view":"^7.0.1","browserify":"^5.10.1","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"2e8e1974f5bf09a8649484a9f6ddca1856a6885c","_id":"ampersand-view-switcher@1.0.3","_shasum":"ec2579f2c4942847ae01ae6db04b78256c3f81eb","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"}],"dist":{"shasum":"ec2579f2c4942847ae01ae6db04b78256c3f81eb","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.0.3.tgz","integrity":"sha512-gOnSFhdESNmWmINjuVvaeCvHSxtXu5zm/xJ+vl4FyD3O0/sXHj0cKqomGW9/pGZo1xzvbkTupEXzMRzYszF5Kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChS3D3sdxK1HPSkOEwC9uRfXRENOholCDOSLQ4++f7rgIgffUpYhF0SvZ6mWjFHaJBOBmJ5mDebpRjzf8ezWfSoJY="}]},"directories":{}},"1.0.4":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.0.4","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"ampersand-view":"^7.0.1","browserify":"^5.10.1","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"891d18053348276bef27d5a3f09fe36558911030","_id":"ampersand-view-switcher@1.0.4","_shasum":"0a11db771eab1d590a61ae2310285adb2309acb6","_from":".","_npmVersion":"2.0.0-alpha-5","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"}],"dist":{"shasum":"0a11db771eab1d590a61ae2310285adb2309acb6","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.0.4.tgz","integrity":"sha512-zapzKUYeJj7IKGp6dS7EiuC0jb3C/cQi2+0Pbqj+/2vdZ7k5RZXRPZTHESBnSXfdFKsDtKhexfL06z6q9rQK5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAarkmULd6kk3XXTV9N89hBX9WL4DmJDcyAGn2pn0qanAiEAm6a3iUiIRaVwd2SaQEuxrndz2xLKAZvdRmhokNkEOSc="}]},"directories":{}},"1.0.5":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.0.5","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"ampersand-view":"^7.0.1","browserify":"^5.10.1","phantomjs":"^1.9.7-15","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"bc49c6d5670a724252d3c86f81c2bd4e6c1138d1","_id":"ampersand-view-switcher@1.0.5","_shasum":"55dd70e8c0e030459e105a2e34a401516f2f9315","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"55dd70e8c0e030459e105a2e34a401516f2f9315","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.0.5.tgz","integrity":"sha512-iFGsIaSxVlpuGD8fGiGMQaZogAHobYFMwFy88alvD3go+9j/5O9aV18Vmro4yE9aW/XqLQQkdNk2i3OCeZ11zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC0RUiUSzzvvnDEuYcOGE5FpZyjboyJUO9VowoCv/mUgAiEAoxPLP2e+cAmD4esnjo5yQc+roccmUmBiDgak8CFl5vA="}]},"directories":{}},"1.1.0":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.1.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"devDependencies":{"ampersand-view":"^7.0.1","browserify":"^5.10.1","phantomjs":"^1.9.7-15","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"28238460dddff87a248aa596851e3fb6f35ac035","_id":"ampersand-view-switcher@1.1.0","_shasum":"ddb532f45abcd58e301236d68851dd8f6b1a89ae","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"ddb532f45abcd58e301236d68851dd8f6b1a89ae","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.1.0.tgz","integrity":"sha512-Y12abAjqW4AiD7cft758Rh8VSvVy7a+vH+VhdvodvlVxEZlkCeEX0YMKWLCyn/c4xF8+TFXHDD3UTHdaLGe5Jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGP6dCTALQ+hXfUs3ID/sdPtbO/3CmlwiXqFL+c5Ce07AiEA93Zlopa1zpG43R/TN36vYr/Rm1gfEqh1S820yquRcwA="}]},"directories":{}},"1.1.1":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.1.1","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"browserify":{"transform":["ampersand-version"]},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"dependencies":{"ampersand-version":"^1.0.0"},"devDependencies":{"ampersand-view":"^7.0.1","browserify":"^5.10.1","phantomjs":"^1.9.7-15","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"5cbbc076079d3601f36fa47b9668c23582e378ac","_id":"ampersand-view-switcher@1.1.1","_shasum":"f333d935233a21d17604fd2ea6f0877278be16b5","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.28","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"f333d935233a21d17604fd2ea6f0877278be16b5","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.1.1.tgz","integrity":"sha512-55sLKixpzc4br9P2mR/nN76BwwfShpQgXa741U10pLAxpIe/Zd7s4/G6SILBJ1uw/skfWSL/QaKFtxPgQ1SLSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZWey+9VLK8j93eqNFeM+Ewz30hIiXK4ps6o6NA7TzcgIgVbfusbGAr1r+tDV2TycFa2v/WT2sBhjEkB1KjLP6vpA="}]},"directories":{}},"1.1.2":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"1.1.2","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"browserify":{"transform":["ampersand-version"]},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"dependencies":{"ampersand-version":"^1.0.0"},"devDependencies":{"ampersand-view":"^7.0.1","browserify":"^5.10.1","phantomjs":"^1.9.7-15","precommit-hook":"0.x.x","run-browser":"","tap-spec":"^0.2.0","tape":"2.x.x","tape-run":"^0.1.1"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"e1bcb8f947943a659d198a59c0ae548b210b3df2","_id":"ampersand-view-switcher@1.1.2","_shasum":"393db617a4193832bbc94437f1c696e8356e6885","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.28","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"393db617a4193832bbc94437f1c696e8356e6885","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-1.1.2.tgz","integrity":"sha512-sVmuPOpsdfYqZL8bkZ8WyM2Rwsmi4Fe9/JmGLWz0I8dRH8A86RCILYhx5XmlSyq0PP0AzaW1wAqy0Jv1nF+RFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtfM2r9pdaXVlp24C7Hfc1SVcbRMBZ2oHYrFnvhqqChQIhAMnYkvSKDPgDOAVo18/LHZJc2IojQ8VWGY0prvLhQWiG"}]},"directories":{}},"2.0.0":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"2.0.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"browserify":{"transform":["ampersand-version"]},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"dependencies":{"ampersand-version":"^1.0.0"},"devDependencies":{"ampersand-view":"^7.0.1","browserify":"^6.2.0","phantomjs":"^1.9.12","precommit-hook":"^1.0.7","run-browser":"","tap-spec":"^1.0.1","tape":"^2.0.0","tape-run":"^0.3.0"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher"},"scripts":{"start":"run-browser test/*","test":"browserify test/* | tape-run | tap-spec"},"gitHead":"63a8dae9361e539875b5abc438394fb7813905a0","_id":"ampersand-view-switcher@2.0.0","_shasum":"0358002066d2dcfb8367f1f5ae0b8007c09d88d7","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.30","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"kamilogorek","email":"kamil.ogorek@gmail.com"}],"dist":{"shasum":"0358002066d2dcfb8367f1f5ae0b8007c09d88d7","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-2.0.0.tgz","integrity":"sha512-5MRo4EA9NAmbkF4NTFcK87MGVg/JBSJC4iJA6PzvBs9PYrhs6Jik8c0LSAHtnSikwZDiPyXyzmzOUuKYXAfvhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6Gm4WVBYngkIzNRG6M6MjwfalLmnP5efAskQIJqO3iAiEAnOZpmOZf6wy37r/wuXoT7F9oAlXptSocSJwD0IqUKkg="}]},"directories":{}},"2.1.0":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"2.1.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"browserify":{"transform":["ampersand-version"]},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"dependencies":{"ampersand-version":"^1.0.0"},"devDependencies":{"ampersand-view":"^7.0.1","browserify":"^6.2.0","jshint":"^2.9.1","phantomjs":"^1.9.12","precommit-hook":"^3.0.0","tape":"^4.4.0","zuul":"^3.9.0"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher.git"},"scripts":{"start":"zuul --local -- test/main.js","test":"zuul --phantom -- test/main.js","test-ci":"zuul -- test/main.js","lint":"jshint .","validate":"npm ls"},"pre-commit":["lint","validate","test"],"gitHead":"2840308e0f7bce95c6b9275ae04463cde6d083a9","_id":"ampersand-view-switcher@2.1.0","_shasum":"e2375b5252f3127d5bc6ddda82c0c12ef3da2206","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"gar","email":"gar+npm@danger.computer"},"dist":{"shasum":"e2375b5252f3127d5bc6ddda82c0c12ef3da2206","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-2.1.0.tgz","integrity":"sha512-WpSgjwLcm/UOXL9jE6PgnYO4rdDWw31HzKnUw4Xb+UmygPoJRhgGXZNSfRo5mtE/UyRLNRCTxUC7zzfov8lnNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCGFX1FeoJREj48zdx+tMGJbMrAAmX2yP1nYmUdZshoQIgTbbeCHDXTUgbFvPu+Iyh5RToFzesgtuEYWOSbbfkUgs="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"latentflip","email":"phil@latentflip.com"},{"name":"gar","email":"gar@comrade.us"},{"name":"lukekarrys","email":"luke@lukekarrys.com"},{"name":"kamilogorek","email":"kamil.ogorek@gmail.com"}],"directories":{}},"3.0.0":{"name":"ampersand-view-switcher","description":"A utility for swapping out views inside a container element.","version":"3.0.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"browserify":{"transform":["ampersand-version"]},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"dependencies":{"ampersand-version":"^1.0.0"},"devDependencies":{"ampersand-view":"^9.0.2","ampersand-view-conventions":"^1.1.8","browserify":"^13.0.0","jshint":"^2.9.1","phantomjs-prebuilt":"^2.1.3","precommit-hook":"^3.0.0","tape":"^4.4.0","zuul":"^3.9.0"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"license":"MIT","main":"ampersand-view-switcher.js","repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher.git"},"scripts":{"start":"zuul --local -- test/main.js","test":"zuul --phantom -- test/main.js","test-ci":"zuul -- test/main.js","lint":"jshint .","validate":"npm ls"},"pre-commit":["lint","validate","test"],"gitHead":"63708b80123a0e4daaac0f55991e2dfcb942e283","_id":"ampersand-view-switcher@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.3","_npmUser":{"name":"dhritzkiv","email":"daniel.hritzkiv@gmail.com"},"dist":{"integrity":"sha512-YJEmT2+0eF2np0YGScTQIJQOG8L6elQJ2IFPwqBGZxfJU4/3yoa3VrSp+VcjzqbY6R9rWcbdx6tXIWb4OM4fxQ==","shasum":"ec04053984e2363ad318a3875f5ab8eb9dafdbbe","tarball":"https://registry.npmjs.org/ampersand-view-switcher/-/ampersand-view-switcher-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBVs/aMWVcw8lXr1Bz5jMgF6P7rZSXc9OupifAtKcRF9AiEAzWdW67TCSclKGOpF59ZSMjN5TGRdquL0BBhT8UjReEs="}]},"maintainers":[{"email":"daniel.hritzkiv@gmail.com","name":"dhritzkiv"},{"email":"giladp007@gmail.com","name":"pgilad"},{"email":"fyockm@gmail.com","name":"fyockm"},{"email":"phil@latentflip.com","name":"latentflip"},{"email":"gar+npm@danger.computer","name":"gar"},{"email":"luke@lukekarrys.com","name":"lukekarrys"},{"email":"kamil.ogorek@gmail.com","name":"kamilogorek"},{"email":"henrik@joreteg.com","name":"henrikjoreteg"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ampersand-view-switcher-3.0.0.tgz_1501597037282_0.4993413800839335"},"directories":{}}},"readme":"# ampersand-view-switcher\n\nLead Maintainer: [Kamil Ogórek](https://github.com/kamilogorek)\n\n##Purpose\n\nThis module does one thing: *it helps you swap out views inside of an element*. It's compatible with ampersand-view, backbone views and any view that has an `.el`, `.render()` and `.remove()`\n\nWhat might you do with it?\n- build a page container for your app.\n- build a system for managing display of modals in your single page app.\n- animate a transition between showing any two views.\n\nWhat it does\n- Takes an instantiated view and renders it in the container.\n- Removes the existing view from the container and calls `remove` on it.\n- Makes it easy to do custom stuff as views are added and removed.\n- Works either synchronously or asynchronously depending on whether you want to animate transitions between the views.\n- Makes no assumptions about what your views do or how they're structured except the following:\n    - Views should have an `.el` property that is the root element of the view.\n    - Views should have a `.remove()` method that cleans up and unbinds methods accordingly.\n    - If your view has a `.render()` method it will get called before it's shown.\n    - Beyond this, they could be any object.\n- IT DOES VERY LITTLE ELSE (and *that* is a feature)\n\n## Install\n\n```\nnpm install ampersand-view-switcher\n```\n\n## Example\n\nHere's an example of how you might use the view switcher to handle page views within your ampersand app.\n\n`mainview.js`\n\n```js\nvar AmpersandView = require('ampersand-view');\nvar ViewSwitcher = require('ampersand-view-switcher');\nvar templates = require('./templates');\n\nmodule.exports = AmpersandView.extend({\n    template: templates.body,\n    render: function () {\n        // render our template\n        this.renderWithTemplate();\n\n        // grab the element without our template based on its \"data-hook\" attribute\n        this.pageContainer = this.queryByHook('page-container');\n\n        // set up our page switcher for that element\n        this.pageSwitcher = new ViewSwitcher({\n            el: this.pageContainer, \n            // here we provide a few things we'd like to do each time\n            // we switch pages in the app.\n            show: function (view) {\n                // set our document title\n                document.title = view.pageTitle || 'my awesome app';\n                // scroll to the top\n                document.body.scrollTop = 0;\n                // perhaps store a reference to our current page on our\n                // app global for easy access from the browser console.\n                app.currentPage = view;\n            }\n        });\n    }\n});\n```\n\nOr if you wanted to animate them you can do it asynchronously like so:\n\n```js\n// set up our page switcher for that element\nthis.pageSwitcher = new ViewSwitcher({\n    el: this.pageContainer,\n    // whether or not to wait for remove to be done before starting show\n    waitForRemove: true,\n    // here we provide a few things to do before the element gets\n    // removed from the DOM.\n    hide: function (oldView, cb) {\n        // it's inserted and rendered for me so we'll add a class\n        // that has a corresponding CSS transition.\n        oldView.el.classList.add('animateOut');\n        // give it time to finish (yes there are other ways to do this)\n        setTimeout(cb, 1000);\n    },\n    // here we provide a few things we'd like to do each time\n    // we switch pages in the app.\n    show: function (newView) {\n        // it's inserted and rendered for me\n        document.title = newView.pageTitle || 'app name';\n        document.body.scrollTop = 0;\n\n        // store an additional reference, just because\n        app.currentPage = newView;\n\n        newView.el.classList.add('animateIn');\n    }\n});\n```\n\n\n## API Reference\n\n### constructor `new ViewSwitcher([options])`\n\n* `options` {Object} [optional]\n    * `el` {Element} The DOM element that should contain the views.\n    * `show` {Function} [optional] A function that gets called when a view is being shown. It's passed the new view.\n    * `hide` {Function} [optional] A function that gets called when a view is being removed. It's passed the old view and a callback. If you name 2 incoming arguments for example `function (oldView, callback) { ... }` the view switcher will wait for you to call the callback before it's considered ready. If you only use one like this: `function (oldView) { ... }` it won't wait for you to call a callback.\n    * `waitForRemove` {Boolean} [default: `false`] Whether or not to wait until your `hide` animation callback gets called before starting your `show` animation.\n    * `prepend` {Boolean} [default: `false`] Whether or not to prepend the view to the `element`. When this is `false`, the view is appended.\n    * `empty` {Function} [optional] A function that gets called any time the view switcher is empty. Including when you instantiate it without giving it a view to start with.\n    * `view` {View} [optional] A view instance to start with.\n\n```javascript\nvar switcher = new ViewSwitcher(document.querySelector('#pageContainer'));\n\nvar view = new MyView({ model: model });\n\nswitcher.set(view);\n```\n\n### set `switcher.set(viewInstance)`\n\n* `viewInstance` {View} The new view to render.\n\nThe instantiated view switcher has this one main method. Simply call it with the new view you wish to show.\n\nThis is most likely going to be an instantiated [ampersand-view](https://github.com/ampersandjs/ampersand-view) or Backbone.View, but can be anything that has a `.el` property that represents that view's root element and `.remove()` method that cleans up after itself. In addition if your custom view object has a `.render()` method it will get called before the view is added to the DOM.\n\n```javascript\nvar switcher = new ViewSwitcher({el: document.querySelector('#pageContainer')});\n\nvar view = new MyView({ model: model });\n\nswitcher.set(view);\n```\n\n### clear `switcher.clear(callback)`\n\n* `callback` {Function} [optional] An optional callback when removed. Useful if you're doing custom animations.\n\nRemoves the current view from the view switcher. Calls `callback` when done if one was provided.`\n\n```javascript\nvar switcher = new ViewSwitcher({el: document.querySelector('#pageContainer')});\n\nvar view = new MyView({ model: model });\n\nswitcher.set(view);\n\nswitcher.clear();\n```\n\n## Changelog\n\n- 0.3.0 Adding empty callback, initial view option.\n- 0.0.1 Initial version (prototype stage, beware)\n\n<!-- starthide -->\n\n## Credits\n\nWritten by [@HenrikJoreteg](http://twitter.com/henrikjoreteg) with inspiration and ideas from [@philip_roberts](http://twitter.com/philip_roberts) and [@wraithgar](http://twitter.com/wraithgar) and [other awesome Yetis](http://andyet.com/team).\n\n\n## License\n\nMIT\n\n<!-- endhide -->\n","maintainers":[{"email":"daniel.hritzkiv@gmail.com","name":"dhritzkiv"},{"email":"giladp007@gmail.com","name":"pgilad"},{"email":"fyockm@gmail.com","name":"fyockm"},{"email":"phil@latentflip.com","name":"latentflip"},{"email":"kamil.ogorek@gmail.com","name":"kamilogorek"},{"email":"henrik@joreteg.com","name":"henrikjoreteg"}],"time":{"modified":"2022-06-13T02:46:20.757Z","created":"2014-03-18T03:48:57.447Z","0.1.0":"2014-03-18T03:48:57.447Z","0.2.0":"2014-04-16T04:26:47.026Z","0.3.0":"2014-04-29T07:24:02.024Z","0.3.1":"2014-06-18T15:46:35.490Z","0.3.2":"2014-06-19T12:28:20.817Z","1.0.0":"2014-06-23T04:49:30.729Z","1.0.1":"2014-06-23T10:10:46.096Z","1.0.2":"2014-06-24T15:48:59.826Z","1.0.3":"2014-08-25T16:47:21.309Z","1.0.4":"2014-08-27T15:24:39.899Z","1.0.5":"2014-09-04T21:28:07.816Z","1.1.0":"2014-10-20T20:53:12.130Z","1.1.1":"2014-11-01T14:05:57.926Z","1.1.2":"2014-11-05T19:23:06.595Z","2.0.0":"2015-01-22T20:10:38.217Z","2.1.0":"2016-01-25T22:34:53.794Z","3.0.0":"2017-08-01T14:17:17.345Z"},"homepage":"https://github.com/ampersandjs/ampersand-view-switcher","keywords":["ampersand","views","backbone","clientside"],"repository":{"type":"git","url":"git://github.com/ampersandjs/ampersand-view-switcher.git"},"author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"bugs":{"url":"https://github.com/ampersandjs/ampersand-view-switcher/issues"},"license":"MIT","readmeFilename":"README.md","users":{}}