{"id":28064396,"url":"https://github.com/ysmood/use-node","last_synced_at":"2025-07-20T17:32:55.566Z","repository":{"id":149989547,"uuid":"622095839","full_name":"ysmood/use-node","owner":"ysmood","description":"The next generation node version manager","archived":false,"fork":false,"pushed_at":"2023-07-11T03:03:05.000Z","size":29,"stargazers_count":29,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T13:56:20.646Z","etag":null,"topics":["nodejs","nvm","semver","version-manager"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ysmood.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-01T05:24:58.000Z","updated_at":"2024-02-26T18:46:58.000Z","dependencies_parsed_at":"2025-05-12T13:51:34.196Z","dependency_job_id":"c203c74c-12fd-4a78-b698-90932901fef1","html_url":"https://github.com/ysmood/use-node","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ysmood/use-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysmood%2Fuse-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysmood%2Fuse-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysmood%2Fuse-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysmood%2Fuse-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ysmood","download_url":"https://codeload.github.com/ysmood/use-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ysmood%2Fuse-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266165710,"owners_count":23886668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs","nvm","semver","version-manager"],"created_at":"2025-05-12T13:51:24.071Z","updated_at":"2025-07-20T17:32:55.475Z","avatar_url":"https://github.com/ysmood.png","language":"Go","readme":"# Overview\n\n![usage](https://user-images.githubusercontent.com/1415488/229589650-c4112b86-f533-4205-a48f-44e88ebbc214.svg)\n\nNo need to setup anything, just run the `use-node`, then you can use the right node version under your shell.\n\n- Works the same across Windows, macOS, and Linux.\n- No options, no configs, just run `use-node` under your node project.\n- Auto-detect the standard [engines](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#engines) config recursively from all parent folders.\n- Auto-choose the fastest registry to download node.\n- Auto-cache the node binary.\n- Lightweight and fast.\n- Reports every side-effect it makes on the system, such as where the node is installed.\n\n## Installation\n\nGo to the [release page](https://github.com/ysmood/use-node/releases) and download the use-node binary, run the command below to install use-node to your [PATH]:\n\n```bash\nuse-node -i\n```\n\nOn macOS you might need to do below to trust the binary before run it:\n\n```bash\nxattr -r -d com.apple.quarantine /path/to/use-node\n```\n\nIf you have golang installed:\n\n```bash\ngo install github.com/ysmood/use-node@latest\n```\n\n## Use it outside node project\n\nIf you want to use it without the `package.json` file, just specify the node version you want:\n\n```bash\nuse-node v19\n```\n\n## Shell Setup\n\nIf you want to let it setup PATH env on shell startup, on unix like OS add this line to your `.bashrc` or `.zshrc` files:\n\n```bash\nexport PATH=$PATH:$(use-node -p v19.8.1)\n```\n\nIf you want to run `use-node` whenever you [cd](\u003chttps://en.wikipedia.org/wiki/Cd_(command)\u003e) to a directory, add this line to your `.bashrc` or `.zshrc` files:\n\n```bash\neval \"$(use-node -s)\"\n```\n\nOn Windows, run `use-node -p v19.8.1`, copy the output directory path and add it to [PATH].\n\n## How it works\n\nWhen you run the `use-node`. It first recognize the `engines` field in `package.json` and automatically download or use the best node version from cache.\nThen it spawns a sub-shell and inject the node path to your PATH, your current stdio will transparently pipe to the sub-shell.\n\n[path]: https://en.wikipedia.org/wiki/PATH_(variable)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fysmood%2Fuse-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fysmood%2Fuse-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fysmood%2Fuse-node/lists"}