{"name":"prop-types-exact","version":"1.2.5","keywords":["react","propTypes","prop","types","validator","validation","exact"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"prop-types-exact@1.2.5","maintainers":[{"name":"lencioni","email":"joe.lencioni@gmail.com"},{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/ljharb/prop-types-exact#readme","bugs":{"url":"https://github.com/ljharb/prop-types-exact/issues"},"dist":{"shasum":"f275e7dc0d629c2f7414782e8189b3e2d2e9e158","tarball":"http://registry-npm.ywwl.com/prop-types-exact/download/prop-types-exact-1.2.5.tgz","fileCount":15,"integrity":"sha512-wHDhA5TSSvU07gdzsdeT/FZg6zay94K4Y7swSK4YsRG3moWB0Qsp9g1Y5BBausP1HF8K4UeVe2Xt7ZFJByKp6A==","signatures":[{"sig":"MEYCIQDtK/x+YSveSEcumBhxC1i2WCocsNQeAYCspNGnz4y/HAIhAKOWBpfCeMuNOwlWIaQPlMOfqq9ELtX5LcZ4h3y6qb4Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21210,"size":7853,"noattachment":false,"key":"/prop-types-exact/-/prop-types-exact-1.2.5.tgz"},"main":"src","engines":{"node":">= 0.8"},"gitHead":"3e8adddf58d5e1862751ed7f3c58298ade426b86","scripts":{"lint":"eslint --ext js,jsx src test","tape":"tape --require ./test-build/helpers/_failTestsOnErrors","test":"npm run tests-only","react":"enzyme-adapter-react-install 16","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run react && npm run tests:build && npm run lint","version":"auto-changelog && git add CHANGELOG.md","posttest":"aud --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc npm run tape './test-build/*.*'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","tests:build":"babel test --out-dir=test-build","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/ljharb/prop-types-exact.git","type":"git"},"_npmVersion":"10.8.1","description":"For use with React PropTypes. Will error on any prop not explicitly specified.","directories":{},"sideEffects":false,"_nodeVersion":"22.4.1","dependencies":{"hasown":"^2.0.2","isarray":"^2.0.5","call-bind":"^1.0.7","es-errors":"^1.3.0","object.assign":"^4.1.5","reflect.ownkeys":"^1.1.4"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false,"startingVersion":"1.2.1"},"devDependencies":{"aud":"^2.0.4","nyc":"^10.3.2","tape":"^5.8.1","react":"^0.13 || ^0.14 || ^15 || ^16.0.0-alpha.12","eslint":"=8.8.0","rimraf":"^2.7.1","npmignore":"^0.3.1","@babel/cli":"^7.24.8","in-publish":"^2.0.1","prop-types":"^15.8.1","auto-changelog":"^2.4.0","babel-preset-airbnb":"^5.0.0","eslint-plugin-react":"^7.34.3","safe-publish-latest":"^2.0.0","@ljharb/eslint-config":"^21.1.1","enzyme-adapter-react-helper":"^1.3.10"},"_npmOperationalInternal":{"tmp":"tmp/prop-types-exact_1.2.5_1720714632535_0.3196752708971913","host":"s3://npm-registry-packages"},"readme":"# prop-types-exact <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nFor use with React PropTypes. Will error on any prop not explicitly specified.\n\n## Usage\n\n```jsx\nimport PropTypes from 'prop-types';\nimport exact from 'prop-types-exact';\n\nfunction Foo({ foo, bar }) {\n  return <div>{foo}{bar}</div>\n}\nFoo.propTypes = exact({\n  foo: PropTypes.string,\n  bar: PropTypes.number,\n});\n\n<Foo foo=\"hi\" bar={3} /> // no warnings\n\n<Foo foo=\"hi\" bar={3} baz=\"extra\" /> // propTypes warning!\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/prop-types-exact\n[npm-version-svg]: http://versionbadg.es/ljharb/prop-types-exact.svg\n[deps-svg]: https://david-dm.org/ljharb/prop-types-exact.svg\n[deps-url]: https://david-dm.org/ljharb/prop-types-exact\n[dev-deps-svg]: https://david-dm.org/ljharb/prop-types-exact/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/prop-types-exact#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/prop-types-exact.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/prop-types-exact.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/prop-types-exact.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=prop-types-exact\n[codecov-image]: https://codecov.io/gh/ljharb/prop-types-exact/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/prop-types-exact/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/prop-types-exact\n[actions-url]: https://github.com/ljharb/prop-types-exact/actions\n","publish_time":1720714632719,"_cnpm_publish_time":1720714632719,"dist-tags":{"latest":"1.2.7"}}