{"_id":"react-contextify","_rev":"3-bf11fa9203aeea8d2eb4394eaff41384","name":"react-contextify","description":"Simple decorator to provide context in the functional style","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"react-contextify","version":"0.1.0","description":"Simple decorator to provide context in the functional style","files":["dist","lib","src"],"main":"./lib/contextify.js","scripts":{"build:lib":"babel src --out-dir lib","build:umd":"cross-env NODE_ENV=development webpack src/contextify.js dist/contextify.js","build:umd:min":"cross-env NODE_ENV=production webpack src/contextify.js dist/contextify.min.js","build":"npm run build:lib && npm run build:umd && npm run build:umd:min && node ./prepublish","lint":"eslint src test","lint:fix":"eslint --fix src test","test":"mocha --compilers js:babel-register --recursive --require ./test/setup.js","test:watch":"npm test -- --watch"},"repository":{"type":"git","url":"git+https://github.com/babotech/react-contextify.git"},"keywords":["react","reactjs","context","decorator"],"author":{"name":"Galkin Rostislav","email":"galkinrost@gmail.com","url":"http://github.com/galkinrost"},"license":"MIT","bugs":{"url":"https://github.com/babotech/react-contextify/issues"},"homepage":"https://github.com/babotech/react-contextify#readme","devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.2","babel-loader":"^6.2.2","babel-plugin-transform-object-rest-spread":"^6.5.0","babel-plugin-transform-react-jsx":"^6.5.0","babel-preset-es2015":"^6.5.0","cross-env":"^1.0.7","es3ify":"^0.2.1","eslint":"^2.2.0","eslint-config-babo":"^0.1.1","expect":"^1.14.0","glob":"^7.0.0","jsdom":"^8.0.2","mocha":"^2.4.5","react":"^0.14.7","react-addons-test-utils":"^0.14.7","webpack":"^1.12.13"},"dependencies":{"hoist-non-react-statics":"^1.0.5","loose-envify":"^1.1.0"},"gitHead":"deda590c799fe724a9a0fc73feff778d6f9d76f0","_id":"react-contextify@0.1.0","_shasum":"f6a7843d4bab95c6fa46342a5f0440c846d15ddd","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"galkinrost","email":"galkinrost@gmail.com"},"dist":{"shasum":"f6a7843d4bab95c6fa46342a5f0440c846d15ddd","tarball":"https://registry.npmjs.org/react-contextify/-/react-contextify-0.1.0.tgz","integrity":"sha512-1cufyI0T13MKmEO/pqCh4qpG2Ok9mpmQ0EnruZ9rT9BBrFx0BGz1baeA2S5tdokNL3oK3qwEscgUfb67Ok9INw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHzdMxmd4KjsH/B6hv94ealJB5nL1a4GvIndpGubTOCHAiEAvJ9zOTxhrOdSKG/BAB35qK/sDGfzHcRnQxZqhXIGk0Q="}]},"maintainers":[{"name":"galkinrost","email":"galkinrost@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/react-contextify-0.1.0.tgz_1456559380300_0.8930717147886753"}}},"readme":"# React contextify [![Build Status](https://travis-ci.org/babotech/react-contextify.svg?branch=master)](https://travis-ci.org/babotech/react-contextify)\n\nHigh order component to provide the context in the functional style\n\n## Installation\n\n```bash\nnpm install --save react-contextify\n```\n\n## Usage\n\n```javascript\nimport React, {PropTypes} from 'react'\nimport contextify from 'react-contextify'\n\nconst ContextProvider = () => (...)\n\nexport default contextify({\n    foo: PropTypes.string\n}, props => ({\n    foo: props.bar\n}))(ContextProvider)\n\n\n...\n\nconst ContextHandler = (_, context) => (...)\n\nContextHandler.contextTypes = {\n    foo: PropTypes.string\n}\n\n...\n<ContextProvider bar=\"baz\">\n...\n    <ContextHandler />\n...\n</ContextProvider>\n```\n\n## License\n\n**MIT**\n\n","maintainers":[{"name":"galkinrost","email":"galkinrost@gmail.com"}],"time":{"modified":"2022-06-25T18:57:24.334Z","created":"2016-02-27T07:49:43.398Z","0.1.0":"2016-02-27T07:49:43.398Z"},"homepage":"https://github.com/babotech/react-contextify#readme","keywords":["react","reactjs","context","decorator"],"repository":{"type":"git","url":"git+https://github.com/babotech/react-contextify.git"},"author":{"name":"Galkin Rostislav","email":"galkinrost@gmail.com","url":"http://github.com/galkinrost"},"bugs":{"url":"https://github.com/babotech/react-contextify/issues"},"license":"MIT","readmeFilename":"README.md"}