npm
npmThe package manager for Node.js, and the client for its registry.
The package manager for Node.js, and the client for its registry.
//The rest of the file syncs. Only these values are lifted out and kept in your secret store.
prefix=, cache=//registry.npmjs.org/:_authToken=npm_FAKE000000000000000000000000000000//npm.pkg.github.com/:_authToken=ghp_FAKE00000000000000000000000000000000 prefix=/Users/octocat/.npm-globalmachine-localcache=/Users/octocat/.npmmachine-local init-author-name=Octo Catinit-license=MITOtty splits these out before upload and puts each machine’s own back on the way down — no templates to write. The lines above come from this tool’s test fixture in the catalog.
Not a subtraction from the paths above: this is everything else npm writes in your home directory that is state, not configuration. It keeps a whole-home manager like chezmoi from sweeping those up, and it still holds if the synced paths are ever widened.
prefix=cache=//registry.npmjs.org/:_authToken=npm_FAKE000000000000000000000000000000//npm.pkg.github.com/:_authToken=ghp_FAKE00000000000000000000000000000000 prefix=/Users/octocat/.npm-globalmachine-localcache=/Users/octocat/.npmmachine-local init-author-name=Octo Catinit-license=MITEach machine keeps its own copy of these.
//Lifted into your secret store; the rest of the file syncs.
Only what the catalog names. A directory that syncs brings everything inside it except what is listed as excluded here.
Opens otty://sync/add/npm. Otty ships with this catalog, so the link only has to name the tool — nothing is downloaded.
Every one of these is generated from the same rules as this page. None of them splits prefix= and cache= for you — that part is Otty’s own sync, or a template you write by hand.