UNPKG

react-window-size

Version:

React HOC that passes browser window size to wrapped component

67 lines (66 loc) 1.98 kB
{ "name": "react-window-size", "version": "1.2.2", "description": "React HOC that passes browser window size to wrapped component", "repository": { "type": "git", "url": "https://github.com/finnfiddle/react-window-size" }, "author": "Finn Fitzsimons", "license": "MIT", "bugs": { "url": "https://github.com/finnfiddle/react-window-size/issues" }, "homepage": "https://github.com/finnfiddle/react-window-size", "keywords": [ "react-component", "react", "hoc", "browser", "window", "size", "reactive" ], "options": { "mocha": "--require scripts/mocha_runner src/**/__tests__/**/*.js" }, "scripts": { "start": "babel --watch --plugins \"transform-runtime\" src --ignore __tests__ --out-dir ./dist", "prepublish": "babel --plugins 'transform-es2015-modules-umd' src --ignore __tests__ --out-dir ./dist", "lint": "eslint ./src", "lintfix": "eslint ./src --fix", "testonly": "mocha $npm_package_options_mocha", "test": "npm run lint && npm run testonly", "test-watch": "npm run testonly -- --watch --watch-extensions js" }, "devDependencies": { "babel-cli": "^6.6.4", "babel-core": "^6.7.4", "babel-eslint": "^6.0.4", "babel-plugin-transform-es2015-modules-umd": "^6.6.5", "babel-polyfill": "^6.7.4", "babel-preset-es2015": "^6.6.0", "babel-preset-react": "^6.5.0", "babel-preset-stage-2": "^6.5.0", "chai": "^3.5.0", "enzyme": "^2.2.0", "eslint": "^2.11.0", "eslint-config-airbnb": "^9.0.1", "eslint-plugin-import": "^1.8.1", "eslint-plugin-jsx-a11y": "^1.2.2", "eslint-plugin-react": "^5.1.1", "jsdom": "^8.5.0", "mocha": "^2.4.5", "nodemon": "^1.9.1", "react": "^15.0.0", "react-addons-test-utils": "^15.0.0", "react-dom": "^15.0.0", "sinon": "^1.17.3" }, "peerDependencies": { "react": "~0.14.8 || ^15.0.0 || ^16.0.0" }, "dependencies": { "babel-runtime": "^6.6.1" } }