@atao60/fse-cli

中文文档
0.1.9发布于 2023/08/20MITES Module近 30 天下载 1.1万

A cli for fs-extra

原始使用文档
文档目录6 节
  1. 💡 Rational
  2. 🏁 Quickstart
  3. 🎹 Commands
  4. 🛠️ Development
  5. 🛡️ License
  6. 📜 Credits

Welcome to @atao/fse-cli

Github Version Github Version License: MIT NPM Version

A CLI for fs-extra.

BREAKING CHANGE
Since release 0.1, @atao60/fse-cli will only support Node.js 12 and above.
Releases 0.0.x are last ones to support LTS release 10 of Node.js.
Moreover the support is also removed for Node.js release 13.

💡 Rational

Everyone needs simple file system operations like copy, remove, clean, ... that can be used from the terminal or via scripts.

There are many Npm packages that provide all or any of this:

This package just provides many of them from a unique CLI, without any pretention to be any kind of shell.

It is based on the API Node.js: fs-extra.

If an API is needed, use Node.js: fs-extra, not @atao60/fse-cli. If only because the latter embeds a npm-shrinkwrap.json expunged from dev dependencies.

The available CLI commands are fully functional and tested. However it's still a work in progress:

  • Not all fs-extra functions are mapped yet. Please, feel free to open an issue if there is something you would like supported.
  • More tests to come, even if they will only concern the CLI part without overlapping fs-extra's tests.

🏁 Quickstart

NPM

Each command is available:

  • either as a stand alone one, i.e. fse-<command> or fse-cli-<command>,
  • or as a sub command, i.e. fse <command> or fse-cli <command>.

The arguments and options of each command are those of Node.js: fs-extra as far as possible, see the manual.

Let's start with displaying the versions of both @atao60/fse-cli and fs-extra:

  • without installing the package:
npx @atao60/fse-cli version
  • otherwise after installing the package either in global mode:
npm install --global @atao60/fse-cli

fse version
  • or in a project:
npm install --save-dev @atao60/fse-cli # or `yarn add --dev @atao60/fse-cli`

fse version

🎹 Commands

For more details, see the manual.

🛠️ Development

See Contributing.

🛡️ License

See MIT.

Copyright © 2020-2023 Pierre Raoul.

📜 Credits

Indeed the API Node.js: fs-extra.

Furthermore node-fs-extra-cli was very useful to start this project.

版本与发布记录

@atao60/fse-cli 共发布 62 个版本,首次发布于 2020/01/08;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.1.9latest2023/08/203 年前
0.1.82023/08/193 年前
0.1.72021/07/285 年前
0.1.62021/07/035 年前
0.1.52021/06/305 年前
0.1.42021/06/305 年前

关于 @atao60/fse-cli 的常见问题

@atao60/fse-cli 是什么?

A cli for fs-extra

如何安装 @atao60/fse-cli?

在项目目录运行 npm install @atao60/fse-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 fse、fse-cli、fse-remove、fse-rimraf、fse-ensureDir、fse-mkdirs、fse-mkdirp、fse-emptyDir、fse-copy、fse-ensureFile、fse-touch、fse-move,可以用 npx fse 直接运行。

@atao60/fse-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/atao60__fse-cli 是否存在。

@atao60/fse-cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@atao60/fse-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^12.20.0 || ^14.13.1 || >=16.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@atao60/fse-cli 可以商用吗?

@atao60/fse-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@atao60/fse-cli 的下载量有多少?

根据 npm 官方下载统计,@atao60/fse-cli 在 2026/10/07 – 2026/11/05 这 30 天内被下载 10,500 次,日均约 350 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@atao60/fse-cli 还在维护吗?

最新版本 0.1.9 发布于 2023/08/20(3 年前);至今共发布 62 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/01/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。