{"_id":"get-own-enumerable-keys","_rev":"3275351","name":"get-own-enumerable-keys","description":"Like `Object.keys()` but also includes symbols","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2024-03-21T10:23:26.000Z","created":"2023-01-16T02:12:04.228Z","1.0.0":"2023-01-16T02:39:04.615Z","0.0.1":"2023-01-16T02:12:04.228Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-own-enumerable-keys.git"},"versions":{"1.0.0":{"name":"get-own-enumerable-keys","version":"1.0.0","description":"Like `Object.keys()` but also includes symbols","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-own-enumerable-keys.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["object","own","enumerable","keys","key","property","properties","symbol","symbols"],"devDependencies":{"ava":"^5.1.1","tsd":"^0.25.0","xo":"^0.53.1"},"types":"./index.d.ts","gitHead":"1b4613415ec492a74fc02525f1eb2f78f563964a","bugs":{"url":"https://github.com/sindresorhus/get-own-enumerable-keys/issues"},"homepage":"https://github.com/sindresorhus/get-own-enumerable-keys#readme","_id":"get-own-enumerable-keys@1.0.0","_nodeVersion":"14.21.1","_npmVersion":"8.19.2","dist":{"shasum":"59bbda0f7e7469c8c74086e08f79f1381b203899","size":1730,"noattachment":false,"key":"/get-own-enumerable-keys/-/get-own-enumerable-keys-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-own-enumerable-keys/download/get-own-enumerable-keys-1.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-own-enumerable-keys_1.0.0_1673836744451_0.15303909426565476"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-16T02:39:04.615Z","publish_time":1673836744615,"_cnpm_publish_time":1673836744615},"0.0.1":{"name":"get-own-enumerable-keys","version":"0.0.1","description":"Get own enumerable keys","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-own-enumerable-keys.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["object","has","own","property"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/get-own-enumerable-keys/issues"},"homepage":"https://github.com/sindresorhus/get-own-enumerable-keys#readme","_id":"get-own-enumerable-keys@0.0.1","_nodeVersion":"14.21.1","_npmVersion":"8.19.2","dist":{"shasum":"4d892926ae0a2b639c068868540171a42ec7d185","size":1489,"noattachment":false,"key":"/get-own-enumerable-keys/-/get-own-enumerable-keys-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-own-enumerable-keys/download/get-own-enumerable-keys-0.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-own-enumerable-keys_0.0.1_1673835124023_0.37449861569435927"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-16T02:12:04.228Z","publish_time":1673835124228,"_cnpm_publish_time":1673835124228}},"readme":"# get-own-enumerable-keys\n\n> Like [`Object.keys()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys) but also includes [symbols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol)\n\n`Object.keys()` returns the own enumerable keys of an object except symbols (for legacy reasons). This package includes symbols too.\n\nUse [`Reflect.ownKeys()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys) if you also want non-enumerable keys.\n\n## Install\n\n```sh\nnpm install get-own-enumerable-keys\n```\n\n## Usage\n\n```js\nimport getOwnEnumerableKeys from 'get-own-enumerable-keys';\n\nconst symbol = Symbol('x');\n\nconst object = {\n\tfoo: true,\n\t[symbol]: true,\n};\n\nObject.keys(object);\n// ['foo']\n\ngetOwnEnumerableKeys(object);\n//=> ['foo', Symbol('x')]\n```\n","_attachments":{},"homepage":"https://github.com/sindresorhus/get-own-enumerable-keys#readme","bugs":{"url":"https://github.com/sindresorhus/get-own-enumerable-keys/issues"},"license":"MIT"}