Git Product home page Git Product logo

ri's Introduction

ri

A rust version ni.

ni - 馃挕 Use the right package manager


cargo install rni

npmyarnpnpmbun


ri - install

ri

# npm install
# yarn install
# pnpm install
# bun install

ri

ri vite

# npm i vite
# yarn add vite
# pnpm add vite
# bun add vite
ri -f

# npm ci
# yarn install --frozen-lockfile
# pnpm i --frozen-lockfile
# bun install --no-save

ri r - run

ri r dev

# npm run dev
# yarn run dev
# pnpm run dev
# bun run dev

Specially, you can use ri rd to run scripts <agent> run dev

ri r

# interactively select the script to run
# supports https://www.npmjs.com/package/npm-scripts-info convention

ri r

ri un - uninstall

ri un webpack

# npm uninstall webpack
# yarn remove webpack
# pnpm remove webpack
# bun remove webpack

Other useful commands

clean your workspace

  • use ri rm to remove node_modules/**
  • use ri rl to remove lockfile of current agent, like yarn.lock / pnpm-lock.yaml / package-lock.json / bun.lockb

clone a repo

you don't need to paste the url, just press enter

  • step 1: copy the repo url
  • step 2: ri cl

full command: ri cl <url>

git push

  • ri ps - git push

git pull

  • ri pl - git pull

git log

  • ri log
git log --graph --oneline --decorate

get package info

  • ri info - get package info of current directory

Open the browser to the package's repository

  • ri repo - open the browser to the package's repository

How?

ri assumes that you work with lockfiles (and you should)

Before 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.

License

MIT License 漏 2022-Present JiatLn

ri's People

Contributors

jiatln avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lyokolux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.