1.0.0 • Published 3 years ago

antcook-cli-utils v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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