{"_id":"react-switcher","_rev":"873937","name":"react-switcher","description":"Stateless React switcher component.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"time":{"modified":"2024-07-12T06:28:09.000Z","created":"2016-01-19T16:24:26.140Z","1.0.2":"2016-05-03T17:10:50.950Z","1.0.1":"2016-05-03T16:50:12.816Z","1.0.0":"2016-01-19T17:15:30.190Z","0.0.1":"2016-01-19T16:24:26.140Z"},"users":{},"author":{"name":"Mihail Diordiev","email":"zalmoxisus@gmail.com","url":"https://github.com/zalmoxisus"},"repository":{"type":"git","url":"https://github.com/zalmoxisus/react-switcher.git"},"versions":{"1.0.2":{"name":"react-switcher","version":"1.0.2","description":"Stateless React switcher component.","main":"lib/index.js","files":["lib"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","prepublish":"npm run clean && npm run build"},"repository":{"type":"git","url":"https://github.com/zalmoxisus/react-switcher.git"},"keywords":["reactjs","react","switcher","toggle","select","check"],"author":{"name":"Mihail Diordiev","email":"zalmoxisus@gmail.com","url":"https://github.com/zalmoxisus"},"license":"MIT","bugs":{"url":"https://github.com/zalmoxisus/react-switcher/issues"},"homepage":"https://github.com/zalmoxisus/react-switcher","devDependencies":{"babel-cli":"^6.3.15","babel-core":"^6.1.20","babel-eslint":"^5.0.0-beta6","babel-loader":"^6.2.0","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-preset-stage-0":"^6.3.13","eslint":"^1.10.3","eslint-config-airbnb":"^2.1.1","eslint-plugin-react":"^3.11.3","rimraf":"^2.3.4","webpack":"^1.11.0"},"peerDependencies":{"react":"^0.14.0 || ^15.0.0"},"gitHead":"56c51181442db37bdc7da9a4a412f6cb3127e788","_id":"react-switcher@1.0.2","_shasum":"968384e3fc31ed9fd2dff7836ebbe3b2fb4e6500","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"},"dist":{"shasum":"968384e3fc31ed9fd2dff7836ebbe3b2fb4e6500","tarball":"http://registry-npm.ywwl.com/react-switcher/download/react-switcher-1.0.2.tgz","integrity":"sha512-cYQCRvS+6FnQ6hTnEQa5S5dpS6j1nEae85tLn1umF8m/b8gIR8v+VmKCSO9soT6iHptfkd0d4V9+kYz21oiT/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKTHI2Bq4W8tszrL52Qlsjy22p+oldg1ymbzYL+m+MtAIhAJX/5I0aalLq5D3lpCsvlP2OO9vryy+rcjVLfrOxzMLE"}],"size":2382,"noattachment":false,"key":"/react-switcher/-/react-switcher-1.0.2.tgz"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-switcher-1.0.2.tgz_1462295449876_0.12564745475538075"},"directories":{},"publish_time":1462295450950,"_cnpm_publish_time":1462295450950},"1.0.1":{"name":"react-switcher","version":"1.0.1","description":"Stateless React switcher component.","main":"lib/index.js","files":["lib"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","prepublish":"npm run clean && npm run build"},"repository":{"type":"git","url":"https://github.com/zalmoxisus/react-switcher.git"},"keywords":["reactjs","react","switcher","toggle","select","check"],"author":{"name":"Mihail Diordiev","email":"zalmoxisus@gmail.com","url":"https://github.com/zalmoxisus"},"license":"MIT","bugs":{"url":"https://github.com/zalmoxisus/react-switcher/issues"},"homepage":"https://github.com/zalmoxisus/react-switcher","devDependencies":{"babel-cli":"^6.3.15","babel-core":"^6.1.20","babel-eslint":"^5.0.0-beta6","babel-loader":"^6.2.0","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-preset-stage-0":"^6.3.13","eslint":"^1.10.3","eslint-config-airbnb":"^2.1.1","eslint-plugin-react":"^3.11.3","rimraf":"^2.3.4","webpack":"^1.11.0"},"peerDependencies":{"react":"^0.14.0 || ^15.0.0"},"gitHead":"ba97059261b75de9e3f50aad27a85ee5569e9b6c","_id":"react-switcher@1.0.1","_shasum":"c9bc333c4134b3d7d2c8b970f530b2f0821335a5","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"},"dist":{"shasum":"c9bc333c4134b3d7d2c8b970f530b2f0821335a5","tarball":"http://registry-npm.ywwl.com/react-switcher/download/react-switcher-1.0.1.tgz","integrity":"sha512-3TWojG/beuICBJAY1KJKgs4WLuJfFVuKn6nCftYIs6yn3vL2ZweyQICi4yd8NGf6xpg9zuywsfpT9a4Lw8tIbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk6lABFYutaY6fFKhk2bCnXB3QvGT5Rp55Hlz4X+guZwIgT/suWX6ejjwbZsKIcPMqgPmg+HoTUnaixbuVkE799+E="}],"size":2386,"noattachment":false,"key":"/react-switcher/-/react-switcher-1.0.1.tgz"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-switcher-1.0.1.tgz_1462294210500_0.5361432679928839"},"directories":{},"publish_time":1462294212816,"_cnpm_publish_time":1462294212816},"1.0.0":{"name":"react-switcher","version":"1.0.0","description":"Stateless React switcher component.","main":"lib/index.js","files":["lib"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","prepublish":"npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/zalmoxisus/react-switcher.git"},"keywords":["reactjs","react","switcher","toggle","select","check"],"author":{"name":"Mihail Diordiev","email":"zalmoxisus@gmail.com","url":"https://github.com/zalmoxisus"},"license":"MIT","bugs":{"url":"https://github.com/zalmoxisus/react-switcher/issues"},"homepage":"https://github.com/zalmoxisus/react-switcher","devDependencies":{"babel-cli":"^6.3.15","babel-core":"^6.1.20","babel-eslint":"^5.0.0-beta6","babel-loader":"^6.2.0","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-preset-stage-0":"^6.3.13","eslint":"^1.10.3","eslint-config-airbnb":"^2.1.1","eslint-plugin-react":"^3.11.3","rimraf":"^2.3.4","webpack":"^1.11.0"},"dependencies":{"react":"^0.14.5"},"gitHead":"ba97059261b75de9e3f50aad27a85ee5569e9b6c","_id":"react-switcher@1.0.0","_shasum":"f594aeb93c09371eefb542179f7c2fc0eace4a1a","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"},"dist":{"shasum":"f594aeb93c09371eefb542179f7c2fc0eace4a1a","tarball":"http://registry-npm.ywwl.com/react-switcher/download/react-switcher-1.0.0.tgz","integrity":"sha512-TbhlxqWwEqzn6j2sTZ9mHEa4eLguuxeXbnB3QDIu85R9oC0OVWpjVCJp7KHWh3Kmn/7PbsX94aql+fOcdkZHrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDl0jNb/d4GHyyrMzpJTjXiBsIWy2pmCV0Queb9ixkjEAiEAko8tjymI8TWOreRJcF8NTevm2T5ERu4gwf24TVKapp4="}],"size":2370,"noattachment":false,"key":"/react-switcher/-/react-switcher-1.0.0.tgz"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"directories":{},"publish_time":1453223730190,"_cnpm_publish_time":1453223730190},"0.0.1":{"name":"react-switcher","version":"0.0.1","description":"Stateless React switcher component.","main":"lib/index.js","files":["lib"],"scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","prepublish":"npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/zalmoxisus/react-switcher.git"},"keywords":["reactjs","react","switcher","toggle","select","check"],"author":{"name":"Mihail Diordiev","email":"zalmoxisus@gmail.com","url":"https://github.com/zalmoxisus"},"license":"MIT","bugs":{"url":"https://github.com/zalmoxisus/react-switcher/issues"},"homepage":"https://github.com/zalmoxisus/react-switcher","devDependencies":{"babel-cli":"^6.3.15","babel-core":"^6.1.20","babel-eslint":"^5.0.0-beta6","babel-loader":"^6.2.0","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-preset-stage-0":"^6.3.13","eslint":"^1.10.3","eslint-config-airbnb":"^2.1.1","eslint-plugin-react":"^3.11.3","rimraf":"^2.3.4","webpack":"^1.11.0"},"dependencies":{"react":"^0.14.5"},"_id":"react-switcher@0.0.1","_shasum":"c2b1ab1851b7bb7fcf83086d2d78b6ae77fcd51a","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"},"dist":{"shasum":"c2b1ab1851b7bb7fcf83086d2d78b6ae77fcd51a","tarball":"http://registry-npm.ywwl.com/react-switcher/download/react-switcher-0.0.1.tgz","integrity":"sha512-+sSo5KsNNEhROMu8xDnkr68hgx/bEcYChSHFJb/p25H/stWp8WIaWMkfAV0McrsvG3oaVYFMamha7Ubj40yRxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAafCj8Nqtt/P3y0DB0KyNKSIaxi07dRZtvxQ9fgC5icAiEAuPADW1BKKr4lYTa+c4QvXwvirqPMo8y7O1k1RZgGImg="}],"size":2087,"noattachment":false,"key":"/react-switcher/-/react-switcher-0.0.1.tgz"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"directories":{},"publish_time":1453220666140,"_cnpm_publish_time":1453220666140}},"readme":"React Switcher\n==============\n\n### Demo\n\n<table class=\"table table-bordered table-striped\">\n    <tbody>\n        <tr>\n          <td><img src=\"http://g.recordit.co/E3mAr1uJv9.gif\"/></td>\n          <td><img src=\"http://g.recordit.co/TkGntNnTee.gif\"/></td>\n        </tr>\n        <tr>\n          <td><a href=\"https://github.com/zalmoxisus/remotedev-app/blob/master/src/app/components/SyncToggle.js\">Source</a></td>\n          <td><a href=\"https://github.com/zalmoxisus/remotedev-app/blob/master/src/app/components/Settings.js\">Source</a></td>\n        </tr>\n    </tbody>\n</table>\n\n### Installation\n\n```\nnpm install --save react-switcher\n```\n\n### Usage\n\n```js\nimport Switcher from 'react-switcher';\n\n<Switcher\n   on={this.state.isLocal} \n   onClick={() => this.setState({ isLocal: !this.state.isLocal })}\n>\n   Use local server\n</Switcher>\n```\n\n### License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/zalmoxisus/react-switcher","bugs":{"url":"https://github.com/zalmoxisus/react-switcher/issues"},"license":"MIT"}