@krisdages/custom-multi-keytar

Prepackaged multiplatform keytar for multiple versions of Node and Electron

Usage no npm install needed!

<script type="module">
  import krisdagesCustomMultiKeytar from 'https://cdn.skypack.dev/@krisdages/custom-multi-keytar';
</script>

README

Prepackaged multiplatform keytar for multiple versions of Node and Electron

This is a wrapper for the keytar Native Module that includes the prebuilt binaries for several Node and Electron platforms/architectures and loads the corresponding implementation for the current runtime, platform, and architecture.

I created this to avoid having to build multiple versions of my Electron project's asar file when keytar was the only native dependency.

This is not officially supported, and the preinstalled versions of keytar are limited to those needed for my project. They are likely to change in the future. If you want to use this, I'd recommend forking and modifying the versions/platforms in lib/versions.js

Installing

npm install @krisdages/custom-multi-keytar
#or
npm install keytar@npm:@krisdages/custom-multi-keytar

Building

  • Clone the repository
  • Run npm install
  • Run npm run build to download the configured prebuilt binaries.

Supported versions

Electron:

  • 3.x (for a little while longer), 10.x, 11.x

Node:

  • 10.x, 12.x

Platforms / Architectures

  • darwin-x64, linux-x64, win32-x64`