@antcook/cli-utils

1.0.1 • Public • Published

usage

yarn add @antcook/cli-utils
API
  • getPort
  • Incoming init port, then get the port can be used
const { getPort } = require('@antcook/cli-utils')
const canUsePort = getPort(init)
  • getIp
  • Get the current host IP address
const { getIp } = require('@antcook/cli-utils')
const ip = getIp()
  • log
  • Get the current host IP address
const { log } = require('@antcook/cli-utils')
log.fail('fail')				// red log
log.success('success')			// green log
log.warning('warning')			// yellow log

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @antcook/cli-utils

    Weekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    9.23 kB

    Total Files

    8

    Last publish

    Collaborators

    • zuolung