{"name":"react-router-redux","version":"4.0.2","description":"Ruthlessly simple bindings to keep react-router and redux in sync","main":"lib/index","files":["*.md","LICENSE","lib","src"],"repository":{"type":"git","url":"git+https://github.com/reactjs/react-router-redux.git"},"authors":["James Long","Tim Dorr"],"license":"MIT","scripts":{"build":"mkdir -p lib && babel ./src -d lib","lint":"eslint examples src test","test":"npm run lint && npm run test:node && npm run test:browser","test:node":"mocha --compilers js:babel-register --recursive ./test/*.spec.js","test:browser":"karma start","test:cov":"npm run test:cov:browser && npm run test:cov:node && npm run test:cov:report","test:cov:node":"babel-node $(npm bin)/isparta cover $(npm bin)/_mocha report --dir ./coverage/node-coverage -- --recursive ./test/node","test:cov:browser":"COVERAGE=true karma start","test:cov:report":"$(npm bin)/istanbul report --dir ./coverage --include **/*coverage.json html text","prepublish":"npm run build"},"tags":["react","redux"],"keywords":["react","redux","router"],"devDependencies":{"babel-cli":"^6.1.2","babel-core":"^6.7.4","babel-eslint":"^4.1.6","babel-loader":"^6.2.0","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-polyfill":"^6.7.4","babel-preset-es2015":"^6.3.13","babel-preset-react":"^6.5.0","babel-preset-stage-1":"^6.3.13","babel-register":"^6.4.3","eslint":"^1.10.3","eslint-config-rackt":"^1.1.1","eslint-plugin-react":"^3.15.0","expect":"^1.13.0","history":"^2.0.0","isparta":"^4.0.0","isparta-loader":"^2.0.0","karma":"^0.13.3","karma-chrome-launcher":"^0.2.0","karma-coverage":"^0.5.3","karma-firefox-launcher":"^0.1.7","karma-ie-launcher":"^0.2.0","karma-mocha":"^0.2.0","karma-mocha-reporter":"^1.0.4","karma-safari-launcher":"^0.1.1","karma-sourcemap-loader":"^0.3.5","karma-webpack":"^1.7.0","mocha":"^2.3.4","react":"^0.14.3","react-dom":"^0.14.3","react-redux":"^4.4.0","react-router":"^2.0.0","redux":"^3.0.4","redux-devtools":"^3.0.0","redux-devtools-dock-monitor":"^1.0.1","redux-devtools-log-monitor":"^1.0.1","webpack":"^1.12.9"},"gitHead":"c7eeda2b3c1506c4ba8b637f53f404b1868f31f2","bugs":{"url":"https://github.com/reactjs/react-router-redux/issues"},"homepage":"https://github.com/reactjs/react-router-redux#readme","_id":"react-router-redux@4.0.2","_shasum":"f092f7065ba0756315317f050a2ec1785121f61e","_from":".","_npmVersion":"3.8.7","_nodeVersion":"5.3.0","_npmUser":{"name":"timdorr","email":"timdorr@timdorr.com"},"dist":{"shasum":"f092f7065ba0756315317f050a2ec1785121f61e","tarball":"http://registry-npm.ywwl.com/react-router-redux/download/react-router-redux-4.0.2.tgz","integrity":"sha512-GvCKIy/IGCstSth9qtK6uFtjTjNYG6mcIz6rZ+n85+MPrHBabuPqIXfCe7H707oN+N9e4b4RtBaqJKUxPzZY3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9G0lhVhFDxNOYLffkBHSfM5DIJZsommW+gpX3eZHmXAiEAv9lovZF6KFatWo4I0PTKviT7ROsPl7UrHApMZm3DHnM="}],"size":11133,"noattachment":false,"key":"/react-router-redux/-/react-router-redux-4.0.2.tgz"},"maintainers":[{"name":"jlongster","email":"longster@gmail.com"},{"name":"timdorr","email":"timdorr@timdorr.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-router-redux-4.0.2.tgz_1460076673420_0.7478813915513456"},"directories":{},"readme":"# react-router-redux\n\n[![npm version](https://img.shields.io/npm/v/react-router-redux/next.svg?style=flat-square)](https://www.npmjs.com/package/react-router-redux)  [![npm downloads](https://img.shields.io/npm/dm/react-router-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-router-redux) [![build status](https://img.shields.io/travis/reactjs/react-router-redux/master.svg?style=flat-square)](https://travis-ci.org/reactjs/react-router-redux)\n\n> **Keep your state in sync with your router** :sparkles:\n\nThis is beta software, it needs:\n\n1. A working example\n2. Some people to try it out and find bugs\n3. A strategy for working with the devtools\n   - (issue describing a different approach to what we've seen previously coming soon)\n   \n## Versions\n\nThis (react-router-redux 5.x) is the version of react-router-redux for use with react-router 4.x. \nUsers of react-router 2.x and 3.x want to use react-router-redux found at [the legacy repository](https://github.com/reactjs/react-router-redux).\n\n## Installation\n\n```\nnpm install --save react-router-redux@next\nnpm install --save history\n```\n\n## Usage\n\nHere's a basic idea of how it works:\n\n```js\nimport React from 'react'\nimport ReactDOM from 'react-dom'\n\nimport { createStore, combineReducers, applyMiddleware } from 'redux'\nimport { Provider } from 'react-redux'\n\nimport createHistory from 'history/createBrowserHistory'\nimport { Route } from 'react-router'\n\nimport { ConnectedRouter, routerReducer, routerMiddleware, push } from 'react-router-redux'\n\nimport reducers from './reducers' // Or wherever you keep your reducers\n\n// Create a history of your choosing (we're using a browser history in this case)\nconst history = createHistory()\n\n// Build the middleware for intercepting and dispatching navigation actions\nconst middleware = routerMiddleware(history)\n\n// Add the reducer to your store on the `router` key\n// Also apply our middleware for navigating\nconst store = createStore(\n  combineReducers({\n    ...reducers,\n    router: routerReducer\n  }),\n  applyMiddleware(middleware)\n)\n\n// Now you can dispatch navigation actions from anywhere!\n// store.dispatch(push('/foo'))\n\nReactDOM.render(\n  <Provider store={store}>\n    { /* ConnectedRouter will use the store from Provider automatically */ }\n    <ConnectedRouter history={history}>\n      <div>\n        <Route exact path=\"/\" component={Home}/>\n        <Route path=\"/about\" component={About}/>\n        <Route path=\"/topics\" component={Topics}/>\n      </div>\n    </ConnectedRouter>\n  </Provider>,\n  document.getElementById('root')\n)\n```\n","publish_time":1460076675843,"_cnpm_publish_time":1460076675843,"dist-tags":{"latest":"4.0.8","next":"5.0.0-alpha.9"}}