{"_id":"react-switcher","_rev":"3142609","name":"react-switcher","description":"Stateless React switcher component.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"zalmoxisus","email":""}],"time":{"modified":"2023-11-27T06:53:18.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","size":2382,"noattachment":false,"key":"/react-switcher/-/react-switcher-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-switcher/download/react-switcher-1.0.2.tgz"},"maintainers":[{"name":"zalmoxisus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-switcher-1.0.2.tgz_1462295449876_0.12564745475538075"},"directories":{},"_cnpmcore_publish_time":"2021-12-22T22:14:06.954Z","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","size":2386,"noattachment":false,"key":"/react-switcher/-/react-switcher-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-switcher/download/react-switcher-1.0.1.tgz"},"maintainers":[{"name":"zalmoxisus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-switcher-1.0.1.tgz_1462294210500_0.5361432679928839"},"directories":{},"_cnpmcore_publish_time":"2021-12-22T22:14:06.030Z","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","size":2370,"noattachment":false,"key":"/react-switcher/-/react-switcher-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-switcher/download/react-switcher-1.0.0.tgz"},"maintainers":[{"name":"zalmoxisus","email":""}],"directories":{},"_cnpmcore_publish_time":"2021-12-22T22:14:05.121Z","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","size":2087,"noattachment":false,"key":"/react-switcher/-/react-switcher-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-switcher/download/react-switcher-0.0.1.tgz"},"maintainers":[{"name":"zalmoxisus","email":""}],"directories":{},"_cnpmcore_publish_time":"2021-12-22T22:14:04.200Z","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"}