{"name":"reflect.ownkeys","version":"1.1.5","keywords":["es6","es2015","reflect","ownkeys","polyfill","shim","es-shim API"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","_id":"reflect.ownkeys@1.1.5","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"glenjamin","email":"glenjamin@gmail.com"}],"contributors":[{"name":"Glen Mailer","email":"glen@stainlessed.co.uk"}],"homepage":"https://github.com/es-shims/Reflect.ownKeys","bugs":{"url":"https://github.com/es-shims/Reflect.ownKeys/issues"},"dist":{"shasum":"13b9207d7b95cdf7450bf75d54c4e88770662594","tarball":"http://registry-npm.ywwl.com/reflect.ownkeys/download/reflect.ownkeys-1.1.5.tgz","fileCount":15,"integrity":"sha512-l4eAzUmf1M/CCaV9VTmIAyaL/PG02I1QfVEmTymGJk2AlaXI8C5HrVe7sBVcw5hG5insiPyLcxUYOehGOoTeEQ==","signatures":[{"sig":"MEQCICie+dLBOx0aAo5yFouwybhaJq3LbOlRJ8fqWSYwmiP/AiBOkedrSzErQqeAh4lhVHikoSnDJK0rIqX8/wrBeoRC3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23951,"size":8212,"noattachment":false,"key":"/reflect.ownkeys/-/reflect.ownkeys-1.1.5.tgz"},"main":"index.js","engines":{"node":">= 0.4"},"exports":{".":"./index.js","./auto":"./auto.js","./shim":"./shim.js","./polyfill":"./polyfill.js","./package.json":"./package.json","./implementation":"./implementation.js"},"funding":{"url":"https://github.com/sponsors/ljharb"},"gitHead":"7a1badd48eac6ba506b65f8e692e4957624f8f79","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"es-shim-api --bound","posttest":"npx npm@'>= 10.2' audit --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/**/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prepublishOnly":"safe-publish-latest"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/es-shims/Reflect.ownKeys.git","type":"git"},"_npmVersion":"10.9.2","description":"ES2015 spec-compliant shim for Reflect.ownKeys","directories":{},"_nodeVersion":"23.5.0","dependencies":{"own-keys":"^1.0.1","call-bind":"^1.0.8","globalthis":"^1.0.4","es-abstract":"^1.23.8","define-properties":"^1.2.1","es-set-tostringtag":"^2.0.3"},"publishConfig":{"ignore":[".github/workflows"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"nyc":"^10.3.2","tape":"^5.9.0","eslint":"=8.8.0","encoding":"^0.1.13","npmignore":"^0.3.1","in-publish":"^2.0.1","has-symbols":"^1.1.0","@es-shims/api":"^2.5.1","auto-changelog":"^2.5.0","has-strict-mode":"^1.0.1","safe-publish-latest":"^2.0.0","functions-have-names":"^1.2.3","@ljharb/eslint-config":"^21.1.1"},"_npmOperationalInternal":{"tmp":"tmp/reflect.ownkeys_1.1.5_1735519748330_0.39521894094275667","host":"s3://npm-registry-packages-npm-production"},"readme":"# reflect.ownkeys <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nAn ES2015 spec-compliant `Reflect.ownKeys` shim. Invoke its \"shim\" method to shim `Reflect.ownKeys` if it is unavailable or noncompliant.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-reflect.ownkeys).\n\nMost common usage:\n```js\nvar assert = require('assert');\nvar ownKeys = require('reflect.ownkeys');\n\nvar obj = { a: 1, b: 2, c: 3 };\nvar expected = ['a', 'b', 'c'];\n\nif (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {\n\t// for environments with Symbol support\n\tvar sym = Symbol();\n\tobj[sym] = 4;\n\tobj.d = sym;\n\texpected.push(sym, 'd');\n}\n\nassert.deepEqual(ownKeys(obj), expected);\n\nif (!Reflect.ownKeys) {\n\townKeys.shim();\n}\n\nassert.deepEqual(Reflect.ownKeys(obj), expected);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/reflect.ownkeys\n[npm-version-svg]: https://versionbadg.es/es-shims/Reflect.ownKeys.svg\n[deps-svg]: https://david-dm.org/es-shims/Reflect.ownKeys.svg\n[deps-url]: https://david-dm.org/es-shims/Reflect.ownKeys\n[dev-deps-svg]: https://david-dm.org/es-shims/Reflect.ownKeys/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Reflect.ownKeys#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/reflect.ownkeys.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/reflect.ownkeys.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/reflect.ownkeys.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=reflect.ownkeys\n[codecov-image]: https://codecov.io/gh/es-shims/Reflect.ownKeys/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Reflect.ownKeys/\n[actions-image]: https://img.shields.io/github/check-runs/es-shims/Reflect.ownKeys/main\n[actions-url]: https://github.com/es-shims/Reflect.ownKeys/actions\n","publish_time":1735519748488,"_cnpm_publish_time":1735519748488,"dist-tags":{"latest":"1.1.6"}}