@yme/mirror-cli

0.2.1 • Public • Published

@yme/mirror-cli

NPM version NPM Downloads

Install

pnpm -g add @yme/mirror-cli

Usage

mirror <command> <options>

# Get current mirror of npm
mirror current --npm

# Set mirror of npm to tencent (project, save to <project>/.npmrc)
mirror use tencent --npm

# Set mirror of user (user, save to ~/.npmrc)
mirror use tencent --npm --global

# Set mirror of npm and electron
mirror use taobao --npm --electron

# Custom mirror (start with https)
mirror use https://your.domain.com --npm

# NPM
Pass --global option will not set location to "global", "project" by default

Commands

help        Print usage
current     List currently used mirrors
list        List of available mirrors
use         Update mirror, key of available mirrors OR custom mirror url

Options

--npm       node package manager
--electron  electron project
--global    location of config, false by default

License

MIT

/@yme/mirror-cli/

    Package Sidebar

    Install

    npm i @yme/mirror-cli

    Weekly Downloads

    0

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    8.33 kB

    Total Files

    13

    Last publish

    Collaborators

    • minosss