diff options
author | 2023-09-18 23:42:34 -0700 | |
---|---|---|
committer | 2023-09-18 23:42:34 -0700 | |
commit | 9b7fb8b0f3edbd1fb049a78f24063a1e8389086a (patch) | |
tree | 5c4770204b17f4bb13967b16bc8a2eed3ffd7043 | |
parent | cc54b62fac41c0977c7dfc4c6ba550a6408fa15f (diff) | |
download | bun-9b7fb8b0f3edbd1fb049a78f24063a1e8389086a.tar.gz bun-9b7fb8b0f3edbd1fb049a78f24063a1e8389086a.tar.zst bun-9b7fb8b0f3edbd1fb049a78f24063a1e8389086a.zip |
Update azure-artifacts.md
-rw-r--r-- | docs/guides/install/azure-artifacts.md | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/docs/guides/install/azure-artifacts.md b/docs/guides/install/azure-artifacts.md index 5205e4e13..0deb477c4 100644 --- a/docs/guides/install/azure-artifacts.md +++ b/docs/guides/install/azure-artifacts.md @@ -19,15 +19,6 @@ Make sure to replace `my-azure-artifacts-user` with your Azure Artifacts usernam Set the `$NPM_PASSWORD` environment variable to your Azure Artifacts npm registry password and Bun will automatically replace it with the correct value. You can also choose not to use an environment variable and instead hardcode your password in the `bunfig.toml` file, but be careful not to commit it to source control. -Note: **password must not be base64 encoded**. In [Azure Artifact's](https://learn.microsoft.com/en-us/azure/devops/artifacts/npm/npmrc?view=azure-devops&tabs=windows%2Cclassic) instructions for `.npmrc`, they say to base64 encode the password. Do not do this for `bun install`. Bun will automatically base64 encode the password for you if needed. - -To un-base64 encode a password, you can open your browser console and run: - -```js -atob("base64-encoded-password"); -``` - -If it ends with `==`, it probably is base64 encoded. ### Configure with environment variables @@ -46,8 +37,20 @@ Make sure to: - Replace `my-azure-artifacts-user` with your Azure Artifacts username, such as `jarred1234` - Replace `my-azure-artifacts-password` with the non-base64 encoded password for your Azure Artifacts npm registry. If it ends with `==`, it probably is base64 encoded. +### Don't base64 encode the password + +In [Azure Artifact's](https://learn.microsoft.com/en-us/azure/devops/artifacts/npm/npmrc?view=azure-devops&tabs=windows%2Cclassic) instructions for `.npmrc`, they say to base64 encode the password. Do not do this for `bun install`. Bun will automatically base64 encode the password for you if needed. + To un-base64 encode a password, you can open your browser console and run: ```js atob("base64-encoded-password"); ``` + +You can also use the `base64` command line tool, but doing so means it may be saved in your terminal history which is not recommended: + +```bash +echo "base64-encoded-password" | base64 --decode +``` + +If it ends with `==`, it probably is base64 encoded.
\ No newline at end of file |