{"name":"react-router-redux","version":"4.0.8","description":"Ruthlessly simple bindings to keep react-router and redux in sync","main":"lib/index","files":["*.md","dist","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":"npm run build:commonjs & npm run build:umd & npm run build:umd:min","build:commonjs":"mkdir -p lib && babel ./src -d lib","build:umd":"webpack dist/ReactRouterRedux.js","build:umd:min":"NODE_ENV=production webpack dist/ReactRouterRedux.min.js","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":"^7.1.1","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":"^3.15.0","eslint-config-react-app":"^0.5.0","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.8.0","expect":"^1.13.0","history":"^3.0.0","isparta":"^4.0.0","isparta-loader":"^2.0.0","karma":"^1.4.1","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.0.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.2","karma-sourcemap-loader":"^0.3.5","karma-webpack":"^2.0.2","mocha":"^3.2.0","react":"^15.4.2","react-dom":"^15.4.2","react-redux":"^5.0.2","react-router":"^3.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":"^2.2.1"},"gitHead":"a2825ac0b8e34662624455ab98e29e2eb27f8096","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.8","_shasum":"227403596b5151e182377dab835b5d45f0f8054e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.2.1","_npmUser":{"name":"timdorr","email":"timdorr@timdorr.com"},"dist":{"shasum":"227403596b5151e182377dab835b5d45f0f8054e","tarball":"http://registry-npm.ywwl.com/react-router-redux/download/react-router-redux-4.0.8.tgz","integrity":"sha512-lzlK+S6jZnn17BZbzBe6F8ok3YAhGAUlyWgRu3cz5mT199gKxfem5lNu3qcgzRiVhNEOFVG0/pdT+1t4aWhoQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+Gb8Ln8TywTH6zIYtWVI3562iLy8z2soCpqmg2bhICwIhAJdDDR+MWw5YfmF0pc1JWBv1bNgQra7R4+k27jK7KsUO"}],"size":14251,"noattachment":false,"key":"/react-router-redux/-/react-router-redux-4.0.8.tgz"},"maintainers":[{"name":"jlongster","email":"longster@gmail.com"},{"name":"timdorr","email":"timdorr@timdorr.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-router-redux-4.0.8.tgz_1486742526519_0.22483170474879444"},"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":1486742527148,"_cnpm_publish_time":1486742527148,"dist-tags":{"latest":"4.0.8","next":"5.0.0-alpha.9"}}