{"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":{"integrity":"sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==","shasum":"59bbda0f7e7469c8c74086e08f79f1381b203899","tarball":"http://registry-npm.ywwl.com/get-own-enumerable-keys/download/get-own-enumerable-keys-1.0.0.tgz","fileCount":5,"unpackedSize":3665,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAeTXY1L6kBDKOZyl7hIIFpNU65eCQHvw2wYtelCMxlzAiEAnDkT17ZyyzF0qQWCfpSmpweGWvSuchyahWlLlg89i0w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxLjIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocpQ/9EHISYzsOqfCAnk9fdUvPlxlEosQP6xsNexCkM8lv9eGXJ725\r\nbyTltnhZFUTAc7ckTnm2ox9k+ywrWRDUjgMXlxFLsC9ioY0e32rFXcxLBbJ4\r\nnPxl7vzpflkxAP7kX3/D+7CNOdi32oPj6NWqdOmKSJnrvZHGNMyK1N/Hs2vZ\r\nbs3KP7i5HcdSKGfQCOQ0a9fRPkAOki/mvYM4lxu2i3fo/f8zSsmUvCSxvK84\r\nH95EXwj7WAZNwjsWipeOBtj/WnaNdduX11BYL4QOnOgeU7xrzvvQtuy+zrME\r\nrdweN5mIAbNMQC813W6KRaCZ902hyfdo2BbpJp+s897tNBQaw8zSdWuy2iXy\r\nKjFGnUdDnik9OLmVb7aIHAGPGzLqQTffFgq6+cHt30pMJOYKeF8DIbCvs1/j\r\n44TtG/kIxrU4fKeRXXQAs2z206STkCj3mqywn2s/hI/L95HUgmK0WbUwG3yV\r\nmYpX9JJh3/QiYJpdFiGCERxSkNcM6cDkTvX1chOD1l+X9d7vX+V4fDK1pFed\r\nwWReSYgl70CT6K+AG/ZSzOBRq2XEQBSmzuvc9bPNtpcVmPpbpFwoeRaqf9wc\r\nSYmlcnhxYZ7V+vFD+nE50fXuXK13ABU1LulpijvxcCKIJNTvWvrYQlwpAjUc\r\nBFW26DwQD/9J6KgJgdOCp2PJ5+uVllzoUDY=\r\n=OYm2\r\n-----END PGP SIGNATURE-----\r\n","size":1730,"noattachment":false,"key":"/get-own-enumerable-keys/-/get-own-enumerable-keys-1.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-own-enumerable-keys_1.0.0_1673836744451_0.15303909426565476"},"_hasShrinkwrap":false,"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","publish_time":1673836744615,"_cnpm_publish_time":1673836744615,"dist-tags":{"latest":"1.0.0"}}