{"name":"registry-js","version":"1.16.1","description":"A simple and opinionated library for working with the Windows registry","main":"dist/lib/index.js","typings":"dist/lib/index.d.ts","scripts":{"install":"prebuild-install || node-gyp rebuild","build":"tsc","pretest":"yarn build","test":"jest -c jest.json","prepublishOnly":"yarn build && yarn test","postpublish":"git push --follow-tags","benchmark":"ts-node benchmarks/reg.ts","prettier":"yarn prettier --write","check-prettier":"prettier --check \"./**/*.{ts,tsx,js,json,jsx,scss,html,yaml,yml}\"","prebuild-napi-x64":"prebuild -t 3 -r napi -a x64 --strip","prebuild-napi-ia32":"prebuild -t 3 -r napi -a ia32 --strip","prebuild-napi-arm64":"prebuild -t 3 -r napi -a arm64 --strip","prebuild-all":"yarn prebuild-napi-x64 && yarn prebuild-napi-ia32 && yarn prebuild-napi-arm64","upload":"node ./script/upload.js"},"repository":{"type":"git","url":"git+https://github.com/desktop/registry-js.git"},"keywords":[],"author":"","license":"MIT","bugs":{"url":"https://github.com/desktop/registry-js/issues"},"homepage":"https://github.com/desktop/registry-js#readme","devDependencies":{"@types/benchmark":"^1.0.31","@types/jest":"^26.0.13","@types/node":"^12.0.0","benchmark":"^2.1.4","jest":"^26.4.2","node-abi":"^2.21.0","node-gyp":"^11.2.0","prebuild":"^10.0.1","prettier":"^2.0.5","ts-node":"^9.0.0","typescript":"^3.9.0"},"dependencies":{"node-addon-api":"^3.2.1","prebuild-install":"^5.3.5"},"binary":{"napi_versions":[3]},"config":{"runtime":"napi","target":3},"_id":"registry-js@1.16.1","gitHead":"7571d0766dc96fa8ee9cb672efda998f84a4cfa2","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-pQ2kD36lh+YNtpaXm6HCCb0QZtV/zQEeKnkfEIj5FDSpF/oFts7pwizEUkWSvP8IbGb4A4a5iBhhS9eUearMmQ==","shasum":"e4b6266b0cd27ddaa9e32486090b5ec3a1b05e01","tarball":"http://registry-npm.ywwl.com/registry-js/download/registry-js-1.16.1.tgz","fileCount":12,"unpackedSize":34327,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDPkRC/MhP1F18/p0T2u6UFD9AM0wftye6qyugUosR2zAIgb9+dq1U6kxYFShj7Pc4RyxHQg3uydBTzcgj/YY3O3bk="}],"size":9232,"noattachment":false,"key":"/registry-js/-/registry-js-1.16.1.tgz"},"_npmUser":{"name":"sergiou87","email":"sergio.padrino@gmail.com"},"directories":{},"maintainers":[{"name":"joshaber","email":"joshaber@gmail.com"},{"name":"niik","email":"j.markus.olsson@gmail.com"},{"name":"shiftkey","email":"brendan.forster@github.com"},{"name":"sergiou87","email":"sergio.padrino@gmail.com"},{"name":"tidy-dev","email":"tidy-dev@github.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/registry-js_1.16.1_1747840052383_0.9040663743347097"},"_hasShrinkwrap":false,"readme":"# registry-js\r\n\r\n## A simple and opinionated library for working with the Windows registry\r\n\r\n## Goals\r\n\r\n* zero dependencies\r\n* faster than `reg.exe`\r\n* implement based on usage - don't replicate the registry API\r\n* leverage TypeScript declarations wherever possible\r\n\r\n**Note:** This is currently in preview, with support for features that GitHub\r\nDesktop and Atom require.\r\n\r\n## Install \r\n\r\n```shellsession\r\n$ npm install --save registry-js\r\n# or\r\n$ yarn add registry-js\r\n```\r\n\r\n## But Why?\r\n\r\nThe current set of libraries for interacting with the registry have some\r\nlimitations that meant we couldn't use it in GitHub Desktop:\r\n\r\n* [`windows-registry`](https://www.npmjs.com/package/windows-registry) depends\r\n  on `ffi` at runtime, which caused issues with webpack-ing, and was missing\r\n  APIs we needed.\r\n* [`winreg`](https://www.npmjs.com/package/winreg) depends on\r\n  `reg.exe` which breaks as soon as you enable \"Prevent access to registry\r\n  editing tools\" Group Policy rules (yes, even `QUERY` operations are caught by\r\n  this). More details about this can be found in\r\n  [desktop/desktop#3105](https://github.com/desktop/desktop/issues/3105).\r\n\r\nAfter exploring other options like invoking PowerShell - which was too slow - we\r\ndecided to write our own little library to do the stuff we require by invoking\r\nthe Win32 APIs directly.\r\n\r\n## Documentation\r\n\r\nSee the documentation under the\r\n[`docs`](https://github.com/desktop/registry-js/tree/master/docs) folder.\r\n\r\n## Supported versions\r\n\r\nEach release of `registry-js` includes prebuilt binaries for the versions of\r\nNode and Electron that are actively supported by these projects. Please refer\r\nto the release documentation for [Node](https://github.com/nodejs/Release) and\r\n[Electron](https://electronjs.org/docs/tutorial/support) to see what is\r\nsupported currently.\r\n\r\n## Contributing\r\n\r\nRead the [Setup](https://github.com/desktop/registry-js/blob/master/docs/index.md#setup)\r\nsection to ensure your development environment is setup for what you need.\r\n\r\nThis project isn't about implementing a 1-1 replication of the Windows registry\r\nAPI, but implementing just enough for whatever usages there are in the wild.\r\n\r\nIf you want to see something supported, open an issue to start a discussion\r\nabout it.\r\n","publish_time":1747840052586,"_cnpm_publish_time":1747840052586,"dist-tags":{"latest":"1.16.1","next":"1.15.0-rc1"}}