V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
lyc575757

一个交互式自动补全 npm run 命令的 cli 工具

  •  
  •   lyc575757 · Nov 21, 2023 · 1550 views
    This topic created in 895 days ago, the information mentioned may be changed or developed.

    效果演示

    nrun demo

    使用方法

    cli

    npm insall -g @yuyin/nrun
    nrun
    

    Zsh 插件集成

    git clone -b zsh https://github.com/yuyinws/nrun ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-nrun
    
    # .zshrc
    plugins=(
       ...
       zsh-nrun
    )
    

    在安装 zsh 插件后,当你输入 npm run,pnpm,yarn 等命令并且再按 2 次空格键,即可触发nrun

    GitHub 仓库

    欢迎大家使用并反馈意见

    1 replies    2023-11-21 20:54:53 +08:00
    iamm
        1
    iamm  
       Nov 21, 2023
    我直接用 ni [github]( https://github.com/antfu/ni#nr---run)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1001 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 23:50 · PVG 07:50 · LAX 16:50 · JFK 19:50
    ♥ Do have faith in what you're doing.