{"_id":"is-obj-prop","_rev":"3337853","name":"is-obj-prop","description":"Does a JS type have a property","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"dustinspecker","email":""}],"time":{"modified":"2024-07-10T08:08:01.000Z","created":"2016-10-01T23:06:36.230Z","2.0.0":"2024-05-30T01:16:07.848Z","1.0.0":"2016-10-01T23:06:36.230Z"},"users":{},"author":{"name":"Dustin Specker","email":"DustinSpecker@DustinSpecker.com","url":"github.com/dustinspecker"},"repository":{"type":"git","url":"git+https://github.com/dustinspecker/is-obj-prop.git"},"versions":{"2.0.0":{"name":"is-obj-prop","version":"2.0.0","description":"Does a JS type have a property","main":"src/index.js","scripts":{"lint":"eslint .","test":"npm run lint && c8 ava"},"type":"module","engines":{"node":">=18.0.0"},"repository":{"type":"git","url":"git+https://github.com/dustinspecker/is-obj-prop.git"},"keywords":["js","javascript","object","property","types"],"author":{"name":"Dustin Specker","email":"DustinSpecker@DustinSpecker.com","url":"github.com/dustinspecker"},"license":"MIT","dependencies":{"lowercase-keys":"^3.0.0","obj-props":"^2.0.0"},"devDependencies":{"@eslint/js":"^9.3.0","ava":"^6.1.3","c8":"^9.1.0","eslint":"^9.3.0","globals":"^15.3.0"},"c8":{"reporter":["lcov","text"]},"_id":"is-obj-prop@2.0.0","gitHead":"89176cde62ebb959e894a8b66851404f93ce2ba4","bugs":{"url":"https://github.com/dustinspecker/is-obj-prop/issues"},"homepage":"https://github.com/dustinspecker/is-obj-prop#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"shasum":"2062f02e1fb46ffc9e610fa8cec056ae6e18a2c5","size":1882,"noattachment":false,"key":"/is-obj-prop/-/is-obj-prop-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-obj-prop/download/is-obj-prop-2.0.0.tgz"},"_npmUser":{"name":"dustinspecker","email":"DustinSpecker@DustinSpecker.com"},"directories":{},"maintainers":[{"name":"dustinspecker","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-obj-prop_2.0.0_1717031767707_0.43494720840281675"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-30T01:16:07.848Z","publish_time":1717031767848,"_source_registry_name":"default","_cnpm_publish_time":1717031767848},"1.0.0":{"name":"is-obj-prop","version":"1.0.0","description":"Does a JS type have a property","main":"lib/index.js","scripts":{"test":"gulp test","coveralls":"cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"},"repository":{"type":"git","url":"git+https://github.com/dustinspecker/is-obj-prop.git"},"keywords":["js","javascript","object","property","types"],"author":{"name":"Dustin Specker","email":"DustinSpecker@DustinSpecker.com","url":"github.com/dustinspecker"},"license":"MIT","files":["lib"],"dependencies":{"obj-props":"^1.0.0","lowercase-keys":"^1.0.0"},"devDependencies":{"babel-core":"^6.0.12","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.0.12","chai":"^3.0.0","coveralls":"^2.11.2","del":"^2.0.0","eslint-config-dustinspecker":"^1.1.0","eslint-plugin-new-with-error":"^1.1.0","eslint-plugin-no-use-extend-native":"^0.3.1","eslint-plugin-xo":"^0.5.1","gulp":"^3.9.0","gulp-alex":"^3.0.0","gulp-babel":"^6.0.0","gulp-eslint":"^3.0.1","gulp-if":"^2.0.0","gulp-istanbul":"^1.0.0","gulp-mocha":"^3.0.0","gulp-plumber":"^1.0.1"},"gitHead":"d51aae3130ba27df48a2f2fec8727027b9106a40","bugs":{"url":"https://github.com/dustinspecker/is-obj-prop/issues"},"homepage":"https://github.com/dustinspecker/is-obj-prop#readme","_id":"is-obj-prop@1.0.0","_shasum":"b34de79c450b8d7c73ab2cdf67dc875adb85f80e","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"dustinspecker","email":"DustinSpecker@DustinSpecker.com"},"dist":{"shasum":"b34de79c450b8d7c73ab2cdf67dc875adb85f80e","size":1698,"noattachment":false,"key":"/is-obj-prop/-/is-obj-prop-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-obj-prop/download/is-obj-prop-1.0.0.tgz"},"maintainers":[{"name":"dustinspecker","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-obj-prop-1.0.0.tgz_1475363194402_0.32480845134705305"},"directories":{},"publish_time":1475363196230,"_cnpm_publish_time":1475363196230,"_hasShrinkwrap":false}},"readme":"# is-obj-prop\n[![NPM version](https://badge.fury.io/js/is-obj-prop.svg)](https://badge.fury.io/js/is-obj-prop) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/is-obj-prop.svg)](https://coveralls.io/r/dustinspecker/is-obj-prop?branch=main) [![Code Climate](https://codeclimate.com/github/dustinspecker/is-obj-prop/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/is-obj-prop)\n\n> Does a JS type have a property\n\n## Install\n```\nnpm install --save is-obj-prop\n```\n\n## Usage\n### ES2015\n```javascript\nimport isObjProp from 'is-obj-prop';\n\nisObjProp('array', 'length');\n// => true\n\nisObjProp('ARRAY', 'push');\n// => false\n\n// is-obj-prop can only verify native JS types\nisObjProp('gulp', 'task');\n// => false;\n```\n\n## API\n### isObjProp(type, propertyName)\n#### type\nType: `string`\n\nA native JS type to examine. Note: `is-obj-prop` can only verify native JS types.\n\n#### propertyName\nType: `string`\n\nProperty name to determine if a property of `type`.\n\n## LICENSE\nMIT © [Dustin Specker](https://github.com/dustinspecker)\n","_attachments":{},"homepage":"https://github.com/dustinspecker/is-obj-prop#readme","bugs":{"url":"https://github.com/dustinspecker/is-obj-prop/issues"},"license":"MIT"}