40

✨ null-cli 来啦 🎉 一行命令提高你的效率 🚀

 4 years ago
source link: https://juejin.im/post/5de46d6a6fb9a071817bfc8d
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

✨ null-cli 来啦 🎉 一行命令提高你的效率 🚀

2019年12月02日 阅读 5910

✨ null-cli 来啦 🎉 一行命令提高你的效率 🚀

null-cli

null-cli 是什么 ?

在日常开发工作中,

我们需要用到各式各样的工具

用 有道翻译 来翻译单词

用 postman 来调试网络请求

用 express 来 启动 web 服务器

用 vue-cli , create-react-app 来搭建前端工程 ...

在不同的应用程序间来回切换难免觉得繁琐~

所以就有了 null-cli ! 一个命令行界面工具,集成了我们常用的一些功能~

null-cli 有哪些功能 ?

1. 压缩文件

压缩指定文件,file 文件类型可以是文件夹或者单个文件路径,文件夹路径会自动压缩该文件夹所有的 html/css/js 文件(支持文件类型 : html/css/js)。

null

2. 网络请求

发送 http 请求,目前只支持无头 get 请求 ~ (在命令行拼 header,body 感觉很繁琐,不如 postman 便捷)

null

3. 有道翻译

支持中英文翻译,根据传入的 word 自动识别中英文

null

这个 功能 借鉴了 github.com/kenshinji/y…的实现。

4. 打开浏览器

通过你的默认浏览器打开指定的 url

$ null open <url>
复制代码

5. 生成二维码

生成指定 url 的二维码

null

6. 正则表达式

常用正则表达式

null

7. 生成随机数

生成指定长度的随机数

null

8. 创建模版工程

null

v1 提供了 4 类基础模版 ,v2 将对模版进行细化。

  • react

  • active-page

9. 日期格式转换

日期格式转换,时间戳和字符串互相转换

null

10. 启动 web 服务器

指定工程启动 web 服务器

null

11. 字符串编解码/AES 加解密

null


null

如何使用 null-cli ?


 npm install null-cli -g

 yarn add null-cli -g

复制代码

github.com/webfansplz/…

webfansplz.github.io/null-cli/

如果有帮助到你,麻烦请给作者一个小星星支持作者,万分感谢 。🙏🙏🙏


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK