@react-hook/window-size
v1.0.3 react react hook hook react hooks hooks window size window size hook window width window width hook and 9 more...
build
npm run build:cjs && npm run build:es && npm run build-throttled:cjs && npm run build-throttled:es
build:cjs
babel src/index.js -d dist/cjs --delete-dir-on-start
build:es
cross-env BABEL_ENV=es babel src/index.js -d dist/es --delete-dir-on-start
build-throttled:cjs
babel src/throttled.js -d throttled/cjs --delete-dir-on-start
build-throttled:es
cross-env BABEL_ENV=es babel src/throttled.js -d throttled/es --delete-dir-on-start
format
npm run format:cjs && npm run format:es && npm run format:src
format:cjs
prettier --write "dist/cjs/**/*.js"
format:es
prettier --write "dist/es/**/*.js"
format:src
prettier --write "src/**/*.js"
lint
eslint src
prepublishOnly
npm run lint && npm run test && npm run build && npm run format
test
jest
validate
npm run lint && npm run test -- --coverage
npm i @react-hook/[email protected]
Metadata
- MIT
- Whatever
- Jared Lunde
- released 8/23/2019