cross-keychain
JSON →cross-keychain 1.1.0 is a cross-platform secret storage library for Node.js (≥18) that provides a unified API and CLI to securely store and retrieve credentials using native OS backends: Windows Credential Manager, macOS Keychain, and Linux Secret Service. It uses native Security.framework bindings on macOS for enhanced security, with automatic fallback to CLI-based backends when native modules are unavailable. Actively maintained on GitHub, it ships TypeScript types and supports both programmatic and CLI usage. Unlike alternatives like keytar (deprecated, native bindings only) or keychain (macOS-only), cross-keychain offers broader OS support, native macOS integration, and an optional null backend for testing.
Resources
packagecross-keychain ↗