Neutral Political Machine

    @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
    
    

    Install

    npm i @antcook/cli-utils

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    9.23 kB

    Total Files

    8

    Last publish

    Collaborators

    • zuolung