npm¶
In the project's .npmrc:
registry=https://node.swndx.dev/public/default/
With a token, reference an environment variable so the token never lands in the repository:
//node.swndx.dev/public/default/:_authToken=${SWNDX_TOKEN}
Tarballs download from registry.npmjs.org; run npm audit signatures to have npm verify each one's registry signature.
If a lockfile was created against registry.npmjs.org, it still works: npm fetches the tarballs it names. To have new resolutions go through SWNDX, delete the lockfile and install once.