{"_id":"own-keys","_rev":"3745011","name":"own-keys","description":"Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2025-02-13T06:28:18.000Z","created":"2024-12-29T06:19:48.478Z","1.0.1":"2024-12-29T23:18:26.201Z","1.0.0":"2024-12-29T06:19:48.478Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ljharb/own-keys.git"},"versions":{"1.0.1":{"name":"own-keys","version":"1.0.1","description":"Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc && attw -P","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","pretest":"npm run lint","tests-only":"nyc tape test","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --production"},"keywords":["own","key","keys","propertykey","string","symbol","enumerable","non-enumerable","robust"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ljharb/own-keys.git"},"bugs":{"url":"https://github.com/ljharb/own-keys/issues"},"homepage":"https://github.com/ljharb/own-keys#readme","dependencies":{"get-intrinsic":"^1.2.6","object-keys":"^1.1.1","safe-push-apply":"^1.0.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.2","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.3","@types/get-intrinsic":"^1.2.3","@types/isarray":"^2.0.3","@types/object-keys":"^1.0.3","@types/tape":"^5.8.0","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","evalmd":"^0.0.19","has-property-descriptors":"^1.0.2","has-symbols":"^1.1.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"own-keys@1.0.1","gitHead":"c9f0eab8fc5d84ecdee6194d006ce7ad7591379d","types":"./index.d.ts","_nodeVersion":"23.5.0","_npmVersion":"10.9.2","dist":{"shasum":"e4006910a2bf913585289676eebd6f390cf51358","size":4464,"noattachment":false,"key":"/own-keys/-/own-keys-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/own-keys/download/own-keys-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/own-keys_1.0.1_1735514305945_0.936616452302371"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-29T23:18:26.201Z","publish_time":1735514306201,"_source_registry_name":"default","_cnpm_publish_time":1735514306201},"1.0.0":{"name":"own-keys","version":"1.0.0","description":"Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc && attw -P","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","pretest":"npm run lint","tests-only":"nyc tape test","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --production"},"keywords":["own","key","keys","propertykey","string","symbol","enumerable","non-enumerable","robust"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ljharb/own-keys.git"},"bugs":{"url":"https://github.com/ljharb/own-keys/issues"},"homepage":"https://github.com/ljharb/own-keys#readme","dependencies":{"get-intrinsic":"^1.2.6","object-keys":"^1.1.1","safe-push-apply":"^1.0.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.2","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.3","@types/get-intrinsic":"^1.2.3","@types/isarray":"^2.0.3","@types/object-keys":"^1.0.3","@types/tape":"^5.8.0","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","evalmd":"^0.0.19","has-property-descriptors":"^1.0.2","has-symbols":"^1.1.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"own-keys@1.0.0","gitHead":"88f37683c7790ea73114d663a3fe8199c918d26f","types":"./index.d.ts","_nodeVersion":"23.5.0","_npmVersion":"10.9.2","dist":{"shasum":"4ab4f9758185bd8f2716f95453ea7da72fb56c09","size":4202,"noattachment":false,"key":"/own-keys/-/own-keys-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/own-keys/download/own-keys-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/own-keys_1.0.0_1735453188270_0.5074126020917114"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-29T06:19:48.478Z","publish_time":1735453188478,"_source_registry_name":"default","_cnpm_publish_time":1735453188478}},"readme":"# own-keys <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\nRobustly get an object's own property keys (strings and symbols), including non-enumerables when possible.\n\n## Getting started\n\n```sh\nnpm install --save own-keys\n```\n\n## Usage/Examples\n\n```js\nvar ownKeys = require('own-keys');\nvar assert = require('assert');\n\nassert.deepEqual(ownKeys({ a: 1, b: 2 }), ['a', 'b']);\nassert.deepEqual(ownKeys([1, 2, 3]), [0, 1, 2, 'length']);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/own-keys\n[npm-version-svg]: https://versionbadg.es/ljharb/own-keys.svg\n[deps-svg]: https://david-dm.org/ljharb/own-keys.svg\n[deps-url]: https://david-dm.org/ljharb/own-keys\n[dev-deps-svg]: https://david-dm.org/ljharb/own-keys/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/own-keys#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/own-keys.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/own-keys.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/own-keys.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=own-keys\n[codecov-image]: https://codecov.io/gh/ljharb/own-keys/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/own-keys/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/own-keys\n[actions-url]: https://github.com/ljharb/own-keys/actions\n","_attachments":{},"homepage":"https://github.com/ljharb/own-keys#readme","bugs":{"url":"https://github.com/ljharb/own-keys/issues"},"license":"MIT"}