terminal
This will add the following line to your
package.json
:
package.json
Bun supports a number of protocols for specifying Git dependencies.
terminal
See Docs > Package manager for complete documentation of Bun’s package manager.
bun add github:lodash/lodash
package.json
:
{
"dependencies": {
"lodash": "github:lodash/lodash"
}
}
bun add git+https://github.com/lodash/lodash.git
bun add git+ssh://github.com/lodash/lodash.git#4.17.21
bun add git@github.com:lodash/lodash.git
bun add github:colinhacks/zod
Was this page helpful?