{"name":"prop-types-exact","version":"1.2.6","keywords":["react","propTypes","prop","types","validator","validation","exact"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"prop-types-exact@1.2.6","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":"113ad603f8ec95dfd7afbf152f3b61649f250a54","tarball":"http://registry-npm.ywwl.com/prop-types-exact/download/prop-types-exact-1.2.6.tgz","fileCount":14,"integrity":"sha512-jjPykG6orULQ/2Zcatm6vtCs9mdksYZQs4HTmlHAxbkK2NHGFVBrSLDh4k/RpMWVXECZO6za1i6iF7srRKp/KQ==","signatures":[{"sig":"MEUCIQChqG43C8giHoSptMRWh6dCf+/h7SDFdsJvy/eDE+4VgwIgN8QRNuuG3PUjKHD/yxfJIGUCe9F0OGTiVUra2ejn804=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22188,"size":8160,"noattachment":false,"key":"/prop-types-exact/-/prop-types-exact-1.2.6.tgz"},"main":"src","engines":{"node":">= 0.8"},"gitHead":"09a5cad4145a82a4510c8d47a35f690acce4351b","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":"npx npm@'>= 10.2' audit --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.9.2","description":"For use with React PropTypes. Will error on any prop not explicitly specified.","directories":{},"sideEffects":false,"_nodeVersion":"23.4.0","dependencies":{"hasown":"^2.0.2","isarray":"^2.0.5","es-errors":"^1.3.0","call-bound":"^1.0.3","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":{"nyc":"^10.3.2","psl":"=1.9.0","tape":"^5.9.0","react":"^0.13 || ^0.14 || ^15 || ^16.0.0-alpha.12","eslint":"=8.8.0","rimraf":"^2.7.1","encoding":"^0.1.13","npmignore":"^0.3.1","@babel/cli":"^7.26.4","in-publish":"^2.0.1","prop-types":"^15.8.1","auto-changelog":"^2.5.0","babel-preset-airbnb":"^5.0.0","eslint-plugin-react":"^7.37.2","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.6_1734372781805_0.9144962156307221","host":"s3://npm-registry-packages-npm-production"},"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":1734372782016,"_cnpm_publish_time":1734372782016,"dist-tags":{"latest":"1.2.7"}}