Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-cat

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-cat

> 一个脚手架辅助工具,为了适配多个操作系统,在多个操作系统中使用相同指令完成相同的操作。

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

CliCat

一个脚手架辅助工具,为了适配多个操作系统,在多个操作系统中使用相同指令完成相同的操作。

安装:

npm install cli-cat -g

快速使用:

> cc --help
Usage: cc <command> [options]

Options:
  -v,--version            output the version number
  -h, --help              display help for command

Commands:
  copy <origin> <target>  复制指令
  help [command]          display help for command
  1. 复制操作:
cc copy <origin> <target>

两个必传参数,<origin> 为需要复制的资源,<target>为目标地址。

注意:

  1. 如果<origin>是一个目录,则将复制该目录中的所有内容,而不是目录本身
  2. 如果<origin>是一个文件,则<target>不能是目录

示例:

  1. 复制目录:
cc copy ./testDir1 ./testDir2
  1. 复制文件:
cc copy ./demo.js ./demo02.js
  1. 删除文件夹:
cc rm ./dist
  1. 删除文件:
cc rm ./demo.js

应用场景:

  1. 项目中打包编译时需要 copy 一些额外的文件:

cli-cat

Keywords

FAQs

Package last updated on 13 Jul 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc