{"id":16743697,"url":"https://github.com/jiatln/ri","last_synced_at":"2025-03-21T22:31:38.594Z","repository":{"id":62189350,"uuid":"557761025","full_name":"JiatLn/ri","owner":"JiatLn","description":"A rust version ni but not only ni.","archived":false,"fork":false,"pushed_at":"2023-05-11T06:06:41.000Z","size":292,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T05:35:07.078Z","etag":null,"topics":["cli","ni","ri","rni","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/JiatLn.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}},"created_at":"2022-10-26T08:53:44.000Z","updated_at":"2024-08-26T11:57:10.000Z","dependencies_parsed_at":"2024-10-28T11:36:57.072Z","dependency_job_id":"088c3bea-4e8f-4b7a-af7e-1c41abd0de78","html_url":"https://github.com/JiatLn/ri","commit_stats":{"total_commits":80,"total_committers":1,"mean_commits":80.0,"dds":0.0,"last_synced_commit":"4d9193837772b33e2aaf248bf1e14b24ed642421"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiatLn%2Fri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiatLn%2Fri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiatLn%2Fri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiatLn%2Fri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JiatLn","download_url":"https://codeload.github.com/JiatLn/ri/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880260,"owners_count":20525505,"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":["cli","ni","ri","rni","rust"],"created_at":"2024-10-13T01:27:48.127Z","updated_at":"2025-03-21T22:31:38.230Z","avatar_url":"https://github.com/JiatLn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ri\nA rust version ni.\n\n\u003e [ni](https://github.com/antfu/ni) - 💡 Use the right package manager\n\n\u003cbr\u003e\n\n\u003cpre\u003e\ncargo install \u003cb\u003erni\u003c/b\u003e\n\u003c/pre\u003e\n\n\u003ca href='https://docs.npmjs.com/cli/v6/commands/npm'\u003enpm\u003c/a\u003e · \u003ca href='https://yarnpkg.com'\u003eyarn\u003c/a\u003e · \u003ca href='https://pnpm.js.org/en/'\u003epnpm\u003c/a\u003e · \u003ca href='https://bun.sh/'\u003ebun\u003c/a\u003e\n\n\u003cbr\u003e\n\n### `ri` - install\n\n```bash\nri\n\n# npm install\n# yarn install\n# pnpm install\n# bun install\n```\n\n\u003cp align=\"left\"\u003e\n  \u003cimg\n    src=\"./graphs/ri.gif\"\n    alt=\"ri\"\n    title=\"ri\"\n  /\u003e\n\u003c/p\u003e\n\n```bash\nri vite\n\n# npm i vite\n# yarn add vite\n# pnpm add vite\n# bun add vite\n```\n\n```bash\nri -f\n\n# npm ci\n# yarn install --frozen-lockfile\n# pnpm i --frozen-lockfile\n# bun install --no-save\n```\n\n### `ri r` - run\n\n```bash\nri r dev\n\n# npm run dev\n# yarn run dev\n# pnpm run dev\n# bun run dev\n```\n\nSpecially, you can use `ri rd` to run scripts `\u003cagent\u003e run dev`\n\n```bash\nri r\n\n# interactively select the script to run\n# supports https://www.npmjs.com/package/npm-scripts-info convention\n```\n\n\n\n\u003cp align=\"left\"\u003e\n  \u003cimg\n    src=\"./graphs/ri_r.gif\"\n    alt=\"ri r\"\n    title=\"ri r\"\n  /\u003e\n\u003c/p\u003e\n\n### `ri un` - uninstall\n\n```bash\nri un webpack\n\n# npm uninstall webpack\n# yarn remove webpack\n# pnpm remove webpack\n# bun remove webpack\n```\n\n## Other useful commands\n\n### clean your workspace\n\n- use `ri rm` to remove node_modules/**\n- use `ri rl` to remove lockfile of current agent, like `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lockb`\n\n### clone a repo\n\n\u003e you don't need to paste the url, just press enter\n\n- step 1: copy the repo url\n- step 2: `ri cl`\n\n\nfull command: `ri cl \u003curl\u003e`\n\n### git push\n\n- `ri ps` - git push\n\n### git pull\n\n- `ri pl` - git pull\n\n### git log\n\n- `ri log`\n\n```bash\ngit log --graph --oneline --decorate\n```\n\n### get package info\n\n- `ri info` - get package info of current directory\n\n### Open the browser to the package's repository\n\n- `ri repo` - open the browser to the package's repository\n\n\u003cbr\u003e\n\n### How?\n\n**ri** assumes that you work with lockfiles (and you should)\n\nBefore it runs, it will detect your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lockb` to know current package manager (or `packageManager` field in your packages.json if specified), and runs the [corresponding commands](https://github.com/JiatLn/ri/blob/main/src/agents.rs).\n\n## License\n\n[MIT](./LICENSE) License © 2022-Present [JiatLn](https://github.com/JiatLn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiatln%2Fri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiatln%2Fri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiatln%2Fri/lists"}