@00a/cli

a lot of cli tools

Usage no npm install needed!

<script type="module">
  import 00aCli from 'https://cdn.skypack.dev/@00a/cli';
</script>

README

@00a/cli

a cli tools

install

$ npm install @00a/cli --save  // yarn add @00a/cli

usage

terminal 工具

  • lcq-del 删除本地文件
$ lcq-del ./somefile
  • lcq-serve 在当前目录起一个静态服务
$ cd someDir

$ lcq-serve

->  http://localhost:5000
  • lcq-open 本地浏览器打开链接
$ lcq-open https://baidu.com
  • lcq-uuid 生成一个 uuid
$ lcq-uuid

-> 75cb6b99-c257-41e6-b9f2-ae7ad1d31ce9
  • lcq-start 在一个命令行同时运行多个命令
"scripts": {
        // ...
        "watch-js": "...",
        "watch-less": "...",
        "start": "lcq-start \"npm:watch-js\" \"npm:watch-less\""
        // ...
}

->
  • lcq-shell 跨平台的 unix 脚本执行
$ lcq-shell echo hello world

-> hello world