api-switch-cli

0.3.2 • Public • Published

api-switch-cli

Installation

yarn add api-switch-cli -D

Usage

// package.json

  "api-switch-cli": {
    "rootFile": ".env",
    "globals": {
      "dev": {
        "http": "https://xxx.net",
        "ws": "wss://ws.xxx.net:1000"
      },
      "test": {
        "http": "https://xxx.net",
        "ws": "wss://ws.xxx.net:1000"
      }
    }
  }

Options

  • rootFile API file

  • globals local develop API

Package Sidebar

Install

npm i api-switch-cli

Weekly Downloads

1

Version

0.3.2

License

MIT

Unpacked Size

6.29 kB

Total Files

6

Last publish

Collaborators

  • bearcookie