skills/bun-pm-scopes-registries/SKILL.md
Configure private registries and scoped packages
npx skillsauth add jarle/bun-skills Bun Scopes and registriesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Configure private registries and scoped packages
The default registry is registry.npmjs.org. This can be globally configured in bunfig.toml:
[install]
# set default registry as a string
registry = "https://registry.npmjs.org"
# set a token
registry = { url = "https://registry.npmjs.org", token = "123456" }
# set a username/password
registry = "https://username:[email protected]"
To configure a private registry scoped to a particular organization:
[install.scopes]
# registry as string
"@myorg1" = "https://username:[email protected]/"
# registry with username/password
# you can reference environment variables
"@myorg2" = { username = "myusername", password = "$NPM_PASS", url = "https://registry.myorg.com/" }
# registry with token
"@myorg3" = { token = "$npm_token", url = "https://registry.myorg.com/" }
.npmrcBun also reads .npmrc files, learn more.
development
Using TypeScript with Bun, including type definitions and compiler options
development
Learn how to write tests using Bun's Jest-compatible API with support for async tests, timeouts, and various test modifiers
testing
Learn how to use snapshot testing in Bun to save and compare output between test runs
testing
Learn about Bun test's runtime integration, environment variables, timeouts, and error handling