Tool to help manage .npmrc
and token storage/access securely and automatically on shell startup, using the system keychain.
Compiled using ncc, no need to have the npm dependencies installed locally.
Make sure when extracting the archives, to also include the files alongside npm-github-packages-auth-helper
, which contain configs and necessary native binaries for your platform.
Use the --help
command.
npm-github-packages-auth-helper --help
demo.mp4
On Windows, might need to explicitly run with
node
, i.e.node npm-github-packages-auth-helper
May need install libsecret on linux.
Keytar uses native bindings, so must be built for each platform, this can be done by setting the environment variable npm_config_platform=
when installing, which will fetch the relevant platform binaries.
See NodeJS docs on platform for more info.
yarn
yarn build
The output will be in the dist
folder.