Socket
Socket
Sign inDemoInstall

antcook-cli-utils

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    antcook-cli-utils

antcook-cli utils


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
8.99 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 02 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc