| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
CLI tools for Node.js Core collaborators.
npm install -g @node-core/utils
If you would prefer to build from the source, install and link:
git clone git@github.com:nodejs/node-core-utils.git cd node-core-utils npm ci npm link
Most of the tools need your GitHub credentials to work. You can either
If you prefer option 2, follow these instructions to create the token.
When creating the token, the following boxes need to be checked:
Optionally, if you want to grant write access so git-node can write comments:
You can also edit the permission of existing tokens later.
After the token is generated, you can give it to NCU using:
With encryption (Recommended)ncu-config set username your_github_username
# Do not provide the token in the CLI, `ncu-config` will prompt you for it.
ncu-config set -x tokenNote: Encryption is available only if you have gpg setup on your machine.
Without encryptionncu-config set username your_github_username
# Do not provide the token in the CLI, `ncu-config` will prompt you for it.
ncu-config set tokenThe git-node and ncu-ci commands need to query the Node.js Jenkins API for CI results, so you'll need to configure the Jenkins API token before using these commands.
To obtain the Jenkins API token
Open https://ci.nodejs.org/user/<your-github-username>/security (replace <your-github-username> with your own GitHub username).
Click on the ADD NEW TOKEN button in the API Token section.
Enter an identifiable name (for example, node-core-utils) for this token in the inbox that appears, and click GENERATE.
Copy the generated token.
Add it into your ncurc file (~/.ncurc or $XDG_CONFIG_HOME/ncurc, or ~/.ncurc.gpg or $XDG_CONFIG_HOME/ncurc.gpg) with jenkins_token as key, like this:
With encryption (recommended)ncu-config set -x jenkins_tokenNote: Encryption is available only if you have gpg setup on your machine.
Without encryptionncu-config set jenkins_tokenPut the following entries into your global gitignore file ($XDG_CONFIG_HOME/git/ignore or a file specified by core.excludesFile). For example:
$ git config --global core.excludesfile ~/.gitignore_global# In ~/.gitignore_global # node-core-utils configuration file .ncurc .ncurc.gpg # node-core-utils working directory .ncu
Mind that .ncu/land could contain your access token since it contains the serialized configurations.
If you ever accidentally commit your access token on GitHub, you can simply revoke that token and use a new one.
To add autocomplete just run git-node completion and follow the instructions. (same for the rest of the tools)
If you encounter an error that you cannot fix by yourself, please
See CONTRIBUTING.md.
MIT. See LICENSE.
| Back | FazBrowse Home | New Git URL |