skills/bun-guides-install-registry-scope/SKILL.md
Configure a private registry for an organization scope with bun install
npx skillsauth add jarle/bun-skills Bun Configure private registry for org scopeInstall 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.
Private registries can be configured using either .npmrc or bunfig.toml. While both are supported, we recommend using bunfig.toml for enhanced flexibility and Bun-specific options.
To configure a registry for a particular npm scope:
[install.scopes]
# as a string
"@myorg1" = "https://usertitle:[email protected]/"
# as an object with username/password
# you can reference environment variables
"@myorg2" = {
username = "myusername",
password = "$npm_pass",
url = "https://registry.myorg.com/"
}
# as an object with token
"@myorg3" = { token = "$npm_token", url = "https://registry.myorg.com/" }
Your bunfig.toml can reference environment variables. Bun automatically loads environment variables from .env.local, .env.[NODE_ENV], and .env. See Docs > Environment variables for more information.
[install.scopes]
"@myorg3" = { token = "$npm_token", url = "https://registry.myorg.com/" }
See Docs > Package manager for complete documentation of Bun's package manager.
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