# ff
>这个工具是一个命令行工具,用于在文件系统中进行文件和文件夹的创建、删除和使用模板文件。它基于Node.js开发。
## What
- 创建文件或文件夹:使用mk命令可以创建指定名称的文件或文件夹,并可以选择指定目标位置。
- 删除文件或文件夹:使用rm命令可以删除指定名称的文件或文件夹。
- 创建模板文件:使用create-temp命令可以将指定名称的文件复制为模板文件,用于后续使用。
- 删除模板文件:使用delete-temp命令可以删除指定名称的模板文件。
- 使用模板:使用ut命令可以使用指定名称的模板文件创建新的文件或文件夹。
## Installation
```shell
npm i files-cr -g
```
## Usage
```
Usage: ff <command> [option]
Options:
-v,--version display ff current version
-h,--help display commanders
Commands:
mk <name> [destination] create a directory
rm <name> [destination] delete a file
create-temp <temp-name> [destination] create template
delete-temp <temp-name> [destination] delete template
ut <temp-name> [destination] use template
```
```
### mk
- Run `ff mk demo `
- Create a directory named `demo` in the current directory
- Run `ff mk demo /tmp`
- Create a directory named `demo` in the `/tmp` directory
- Run `ff mk demo.js `
- Create a file named `demo.js` in the current directory
- Run `ff mk demo.js /tmp`
- Create a file named `demo.js` in the `/tmp` directory
### rm
- Run `ff rm demo `
- Delete the file named `demo` in the current directory
- Run `ff rm demo /tmp`
- Delete the file named `demo` in the `/tmp` directory
### create-temp
- Run `ff create-temp demo `
- Create a template named `demo` in the current directory
- Run `ff create-temp demo /tmp`
- Create a template named `demo` in the `/tmp` directory
### delete-temp
- Run `ff delete-temp demo `
- Delete the template named `demo` in the current directory
### ut
- Run `ff ut demo `
- Use the template named `demo` in the current directory
```
## LICENSE
MIT
没有合适的资源?快使用搜索试试~ 我知道了~
命令行工具,用于在文件系统中进行文件和文件夹的创建、删除和使用模板文件 它基于Node.js开发
共7个文件
js:2个
less:1个
gitignore:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 177 浏览量
2024-01-03
09:08:28
上传
评论
收藏 4KB ZIP 举报
温馨提示
这个工具是一个命令行工具,用于在文件系统中进行文件和文件夹的创建、删除和使用模板文件。它基于Node.js开发。 创建文件或文件夹:使用mk命令可以创建指定名称的文件或文件夹,并可以选择指定目标位置。 删除文件或文件夹:使用rm命令可以删除指定名称的文件或文件夹。 创建模板文件:使用create-temp命令可以将指定名称的文件复制为模板文件,用于后续使用。 删除模板文件:使用delete-temp命令可以删除指定名称的模板文件。 使用模板:使用ut命令可以使用指定名称的模板文件创建新的文件或文件夹。
资源推荐
资源详情
资源评论
收起资源包目录
files-cr-master.zip (7个子文件)
files-cr-master
template
tem
index.jsx 0B
index.less 0B
service.js 0B
readme.md 2KB
package.json 541B
bin
index.js 6KB
.gitignore 138B
共 7 条
- 1
资源评论
十小大
- 粉丝: 9209
- 资源: 2552
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功