{"_id":"@napi-rs/keyring@2.1.2","ava":{"timeout":"2m","extensions":["ts"],"nodeArguments":["--import","@oxc-node/core/register"],"workerThreads":false,"environmentVariables":{"TS_NODE_PROJECT":"./tsconfig.json"}},"bugs":{"url":"https://github.com/Brooooooklyn/keyring-node/issues"},"dist":{"shasum":"da11e544fa4dcade4c046aa60d0a7c4f2f0072e8","tarball":"http://registry-npm.ywwl.com/@napi-rs/keyring/download/@napi-rs/keyring-2.1.2.tgz","fileCount":7,"integrity":"sha512-9i1SR6tYeQ3o1beLeVMxhN6Fq513m9TZlTs+46+4JgvSNkaFoW9S4WrpV5MjzE+0CzVoC+dZ4RfZDIgW6+afnQ==","signatures":[{"sig":"MEYCIQDWL8xvki+ctjIf+05tfLMSZaQaxK4gZndkzJ3b8+iFSgIhAOm7jiyntSVlJnsfmx+PCCG9fXEOHrSLJPvYV562ewXq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIErCf02ASn7vwdUQ39uQ+ewMdbnauJZUv1AO36had8WcAiEAqJo0yPIm2ILxZMj8cO7FiCP1YAAZ2ml+lNp7aC7NE+k="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@napi-rs%2fkeyring@2.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":48574,"size":8599,"noattachment":false,"key":"/@napi-rs/keyring/-/@napi-rs/keyring-2.1.2.tgz"},"main":"index.js","name":"@napi-rs/keyring","napi":{"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-apple-darwin","x86_64-pc-windows-msvc","x86_64-unknown-linux-gnu","x86_64-unknown-linux-musl","x86_64-unknown-freebsd","i686-pc-windows-msvc","armv7-unknown-linux-gnueabihf","riscv64gc-unknown-linux-gnu"],"constEnum":false,"binaryName":"keyring"},"types":"./index.d.ts","engines":{"node":">= 10"},"funding":{"url":"https://github.com/sponsors/Brooooooklyn","type":"github"},"gitHead":"52184fbebffeef8a061234f60f313c479b954f9f","license":"MIT","scripts":{"lint":"oxlint","test":"ava -s","build":"napi build --platform --release","format":"run-p format:prettier format:rs format:toml","version":"napi version","licenses":"node scripts/third-party-licenses.mjs","artifacts":"napi artifacts","format:rs":"cargo fmt","preversion":"napi build --platform && git add .","build:debug":"napi build --platform","format:toml":"taplo format","prepublishOnly":"napi prepublish -t npm","format:prettier":"prettier . -w"},"version":"2.1.2","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b45e749e-530c-4248-8db1-2b1c57f40697"}},"homepage":"https://github.com/Brooooooklyn/keyring-node#readme","keywords":["napi-rs","NAPI","N-API","Rust","node-addon","node-addon-api"],"prettier":{"semi":false,"printWidth":120,"arrowParens":"always","singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/Brooooooklyn/keyring-node.git","type":"git"},"_npmVersion":"12.2.0","description":"https://github.com/hwchen/keyring-rs Node.js binding via https://napi.rs","directories":{},"lint-staged":{"*.toml":["taplo format"],"*.@(js|ts|tsx)":["oxlint --fix"],"*.@(js|ts|tsx|yml|yaml|md|json)":["prettier --write"]},"maintainers":[{"name":"broooooklyn","email":"lynweklm@gmail.com"},{"name":"forehalo","email":"forehalo@gmail.com"}],"_nodeVersion":"24.21.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@4.18.1","devDependencies":{"ava":"^8.0.1","chalk":"^6.0.0","husky":"^9.1.7","oxlint":"^1.82.0","prettier":"^3.9.6","@taplo/cli":"^0.7.0","typescript":"^7.0.2","@types/node":"^26.5.1","lint-staged":"^17.5.1","@napi-rs/cli":"^3.9.1","npm-run-all2":"^9.0.3","@oxc-node/core":"^0.1.1"},"optionalDependencies":{"@napi-rs/keyring-darwin-x64":"2.1.2","@napi-rs/keyring-freebsd-x64":"2.1.2","@napi-rs/keyring-darwin-arm64":"2.1.2","@napi-rs/keyring-linux-x64-gnu":"2.1.2","@napi-rs/keyring-linux-x64-musl":"2.1.2","@napi-rs/keyring-win32-x64-msvc":"2.1.2","@napi-rs/keyring-linux-arm64-gnu":"2.1.2","@napi-rs/keyring-win32-ia32-msvc":"2.1.2","@napi-rs/keyring-linux-arm64-musl":"2.1.2","@napi-rs/keyring-win32-arm64-msvc":"2.1.2","@napi-rs/keyring-linux-riscv64-gnu":"2.1.2","@napi-rs/keyring-linux-arm-gnueabihf":"2.1.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/keyring_2.1.2_1792398636601_0.12460197162445019"},"readme":"# `@napi-rs/keyring`\n\n![https://github.com/Brooooooklyn/keyring-node/actions](https://github.com/Brooooooklyn/keyring-node/workflows/CI/badge.svg)\n[![Downloads](https://img.shields.io/npm/dm/@napi-rs/keyring.svg?sanitize=true)](https://npmcharts.com/compare/@napi-rs/keyring?minimal=true)\n\n> https://github.com/hwchen/keyring-rs Node.js binding via https://napi.rs\n\n# Usage\n\n```js\nimport { Entry } from '@napi-rs/keyring'\n\nconst entry = new Entry('my_service', 'my_name')\nentry.setPassword('topS3cr3tP4$$w0rd')\nconst password = entry.getPassword()\nconsole.log('My password is ', password)\nentry.deletePassword()\n```\n\n# Linux backend selection\n\nOn Linux, `Entry` and `AsyncEntry` pick a credential store automatically: the\n[Secret Service](https://crates.io/crates/dbus-secret-service-keyring-store) (gnome-keyring, KWallet,\nkeepassxc, ...) is tried first, and the binding silently falls back to the\n[kernel keyutils keyring](https://crates.io/crates/linux-keyutils-keyring-store) when no Secret Service\nis available.\n\nYou can pin an entry to one specific store by passing the options bag as the last argument (the\noption is accepted on every platform but only meaningful on Linux):\n\n```js\nnew Entry('my_service', 'my_name', { linux: { store: 'secret-service' } }) // require Secret Service\nnew Entry('my_service', 'my_name', { linux: { store: 'keyutils' } }) // require the kernel keyring\nEntry.withTarget('target', 'my_service', 'my_name', { linux: { store: 'keyutils' } })\n```\n\nWhen a store is required, the constructor throws if that store is unavailable — there is no silent\nfallback. When `withTarget` is combined with the keyutils store, the target is used as the kernel key\ndescription, so distinct targets keep distinct credentials.\n\n> **Note:** the keyutils store keeps credentials in kernel memory: per the\n> [linux-keyutils-keyring-store](https://crates.io/crates/linux-keyutils-keyring-store) docs, the key\n> management facility \"is completely in-memory and will not persist across reboots\". Prefer\n> `secret-service` for credentials that must survive a restart.\n\n# Bundled Rust dependencies\n\nThe prebuilt `.node` binaries are built with `--locked` from the committed [`Cargo.lock`](./Cargo.lock), and with\n[`cargo auditable`](https://github.com/rust-secure-code/cargo-auditable), which embeds the exact list of Rust crates\ncompiled into each binary. Recover it for license compliance or vulnerability scanning with:\n\n```sh\ncargo install rust-audit-info\nrust-audit-info node_modules/@napi-rs/keyring-darwin-arm64/keyring.darwin-arm64.node\n\n# or scan for known vulnerabilities\ncargo audit bin node_modules/@napi-rs/keyring-darwin-arm64/keyring.darwin-arm64.node\n```\n\n[syft](https://github.com/anchore/syft), [trivy](https://github.com/aquasecurity/trivy) and\n[grype](https://github.com/anchore/grype) read the same data.\n\nEach platform package also ships a `LICENSE.third-party.md` with the license texts of those crates, generated by\n[`cargo-about`](https://github.com/EmbarkStudios/cargo-about). After changing `Cargo.lock`, regenerate them with\n`yarn licenses` (needs `cargo install --locked cargo-about --features cli`); CI fails while they are stale.\n\n> **Note:** the Linux binaries statically link `libdbus` (built from the sources vendored by\n> [`libdbus-sys`](https://crates.io/crates/libdbus-sys)), which is licensed under `AFL-2.1 OR GPL-2.0-or-later`\n> rather than the crate's own `MIT OR Apache-2.0`. The Linux `LICENSE.third-party.md` files include its license and\n> copyright notices.\n","publish_time":1792398636710,"_cnpm_publish_time":1792398636710,"dist-tags":{"latest":"2.1.2"}}