Skip to content

thorpelawrence/npm-github-packages-auth-helper

Repository files navigation

npm-github-packages-auth-helper

Keyring logo

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.

Usage

Use the --help command.

npm-github-packages-auth-helper --help

Demo

cool-retro-term

demo.mp4

Windows

On Windows, might need to explicitly run with node, i.e. node npm-github-packages-auth-helper

Linux

May need install libsecret on linux.

Build from source

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.

Build locally

yarn
yarn build

The output will be in the dist folder.

References