Skip to main content

npm

Helper functions for the npm package manager.

Functions

setNPMAccessToken()

function setNPMAccessToken(): Promise<void>;

Defined in: functions/npm.ts:16

Helper function to ensure that the "NODE_AUTH_TOKEN" environment variable exists and the "$HOME/.npmrc" file is set up properly to avoid 2FA prompts using a 90-day npm access token.

This is useful in publishing scripts.

Returns

Promise<void>