Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@atao60/fse-cli

atao6020.8kMIT0.1.9

A cli for fs-extra

fse, fse-cli, cli, fs, extra, node, nodejs, node.js, fs-extra, file, file system, copy, directory, emptyDir, ensureDir, mkdirp, mkdirs, mkdir, recursive, json, read, write, delete, remove, ensureFile, touch, create, text, output, move, version, help

readme

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.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.1.9 (2023-08-19)

0.1.8 (2023-08-18)

Bug Fixes

  • docs: remove quotes from links in README (d9b6dd3)

0.1.7 (2021-07-28)

Bug Fixes

  • tasks: use url in place of path to get task files (b080ba9), closes #34765 #16

0.1.6 (2021-07-03)

0.1.5 (2021-06-30)

Bug Fixes

  • publish: restore publishing on Github packages registry (bde232c)
  • try to restore publishing on Hithub (0be2e0c)

0.1.4 (2021-06-29)

Bug Fixes

  • build: try to restore publishing on Github Registry (bis) (564ca22)

0.1.3 (2021-06-29)

Bug Fixes

  • build: try to restore publishing on Github Registry (26f6654)

0.1.2 (2021-06-29)

Bug Fixes

  • esm: replace 'main' with 'exports' in package.json as publishing (8a1dd61)

0.1.1 (2021-06-29)

Bug Fixes

  • fix changelog error and default version in make.sh (67f528b)

0.1.0 (2021-06-29)

⚠ BREAKING CHANGES

  • esm: remove support to Node 10

build

  • esm: migrate to ES Modules (f4a0e7b)

0.0.63 (2021-06-29)

Bug Fixes

  • change the right file for JobDef (7916998)

0.0.62 (2021-06-28)

Features

  • test: add debug entry to make.sh (f7fd324)

Bug Fixes

  • build: restore working husky (v6) hooks (44af08d)

Code Refactoring

  • more precise interface JobDef (sequel) (2d87dd0)
  • esm: split named import-s (0fdd002)
  • more precise interface JobDef (ff94353)
  • esm: add file extension .js in import-s (0faf646)
  • esm: set explicit format cjs of config files (cf30b02)

Docs

  • update README & CONTRIBUTING (5ed5a0b)

0.0.61 (2021-06-25)

Docs

  • fix wrong link in README.md (26e84ea)

0.0.60 (2021-06-24)

Styling

  • comments: minor changes (ecca4e1)

Tests

  • add test of fse-cli as global npm package (c97cf9c)
  • run tests under each main version of Node (using Docker) (928fae9)

Build System

  • deps: allow running npm i even w/o package-lock.json (3080bba)
  • deps: minor updating (4033fe8)
  • deps: upgrade fs-extra (39434cf)
  • deps: upgrade mocha to version 9 (056c9ad)
  • deps: upgrade ts-node & ts typing (354339f)

Docs

  • add warning about next release dropping support to Node 10 (cc3d279)

0.0.59 (2021-06-11)

Build System

  • babel: avoid warning about plugins property 'loose' (e3e8ec8)
  • deps: remove vulnerabilities (step 1) (9bac74e)
  • deps: remove vulnerabilities (step 2) (d424e86)

0.0.58 (2021-06-11)

Bug Fixes

  • deps: fix regression (dargs should have been updated with suppression of number-is-nan & C°) (1484fa9)

Build System

  • deps: bump normalize-url from 4.5.0 to 4.5.1 (380a482)

0.0.57 (2021-06-11)

Others

  • dependencies: update dependencies' versions (bef1134)

Build System

  • deps: bump browserslist from 4.16.1 to 4.16.6 (f2fe4d2)
  • deps: bump handlebars from 4.7.6 to 4.7.7 (7471b0b)
  • deps: bump hosted-git-info from 2.8.8 to 2.8.9 (0e83013)
  • deps-dev: bump lodash from 4.17.20 to 4.17.21 (b4e2c8f)
  • doc: check and update if needed the copyright years before each release (19631cb)

Docs

  • minor changes to docs, comments and vsc settings (e30bc8d)
  • adr: add an adr about license (eb1ffeb)

0.0.56 (2021-04-10)

Features

  • add option 'quiet': only query command messages and error messages are displayed (65d7219), closes #9

Performance Improvements

  • github action: remove "displaying" file '.npmrc' (ee646d0)

Styling

  • doc: fix spelling in CONTRIBUTING.md (21e07d0)
  • doc & comments: fix spelling and comment length (a58526e)

Build System

  • vsc: force vsc editor to use workspace TS version (d26f174)

Others

  • vsc: update spelling data for vsc (a9681d5)

Code Refactoring

Docs

  • enhance CONTRIBUTING.md about code overview and 'npm link' (aa5f7cb)

0.0.55 (2021-03-07)

Styling

  • tools: correct code syntax in tools files (262f0a4)

Docs

  • replace emoji unicode for 'shield' with fully-qualified version in README.md (6655b5d)

0.0.54 (2021-03-06)

Docs

  • publishing: update CONTRIBUTING.md (7b469a2)
  • readme: move npm link inside quickstart section (7e8f75e)
  • update copyright year (9ea7369)

0.0.53 (2021-02-03)

Features

  • publishing: add publishing to github packages registry (2f244af)

Bug Fixes

  • publishing: fix to get publishing on github packages registry working (48d595f)

Docs

  • add some links in README.md (a133c28)

0.0.52 (2021-02-02)

Code Refactoring

  • publishing: rename github action from main.yml to release.yml (7a06ff7)

0.0.51 (2021-01-29)

Docs

  • replace in README.md the unicode for :under_construction: with svg file (71a4cf2)

0.0.50 (2021-01-28)

Bug Fixes

  • release: force loading all commits during github action (6b0cad5)

0.0.49 (2021-01-28)

Bug Fixes

  • release: use github.workspace for body_path of github action 'create-release' (18c4f90)

0.0.48 (2021-01-28)

Bug Fixes

  • release: replace output var with file for github action 'create-release' (9f6e6d8)

0.0.47 (2021-01-28)

Bug Fixes

  • release: yet a new try to add body to github release (1066076)

0.0.46 (2021-01-28)

Bug Fixes

  • release: new try to add body to github release (ccb4881)

0.0.45 (2021-01-28)

Bug Fixes

  • release: add body to github release (d4fbf47)

0.0.44 (2021-01-28)

Features

  • release: add github action 'create-release' (f6bf006)

Bug Fixes

  • publishing: restore README.md & C° (5c48d89)

0.0.43 (2021-01-27)

Performance Improvements

  • publishing: publish with even less dev stuff, no more types and map files (5aeac38)

Docs

  • add minor changes to ./README.md (fb4a538)

Others

  • update dependencies (among which fs-extra to 9.1.0) (7a88e27)

0.0.42 (2021-01-25)

Bug Fixes

  • publishing: remove script 'prepublishOnly' (498e726)

0.0.41 (2021-01-25)

Bug Fixes

  • scripts: store package-lock.json in the right place during publishing (02484d0)

Performance Improvements

  • publishing: publish a version of fse-cli without dev stuff (3872fad), closes #6

0.0.40 (2021-01-24)

Bug Fixes

  • emptydir: allow access to task 'emptyDir' with the right parameter (82c3ee2), closes #8

Code Refactoring

  • move import-s from 'fs' to 'fs-extra' (6cf1d21)

Styling

  • remove: change console log message (1372a8a)
  • test: explicit missing type var in test/cmd.ts (05711d1)
  • change console log messages (2a2ea1e)

Tests

  • emptydir: add minimal testing of task emptyDir (eaadb82), closes #8

Build System

  • scripts: add launching 'publish' with the right parameters (8f185b3)
  • scripts: add launching 'test:dev' in debug mode (571d6fc)

0.0.39 (2021-01-21)

Bug Fixes

  • don't use internal rimraf during publishing (d21f215)

0.0.38 (2021-01-20)

Performance Improvements

  • publish npm-shrinkwrap.json expunged from dev deps (e4edc96), closes #6

0.0.37 (2021-01-20)

Bug Fixes

  • new RELEASE.json commited with each release (d5b8a0c)

0.0.36 (2021-01-19)

Performance Improvements

  • stop publishing file npm-shrinkwrap.json (83ee913)

Styling

  • es-lint: remove es-lint exceptions (7f8e79c)

Others

  • add VSC configuration (182ae96)
  • remove dependency on babel-eslint (7f812d1)
  • replace linguist-vendored with '-linguist-detectable' for config files in js (f111d87)

Code Refactoring

  • tests: remove some eslint exceptions (f9ac158)
  • rewrite index file with TS (b04f170)

Docs

  • add first architecture decision records (1b70354)
  • change README with some rephrasing (d7d9066)
  • cross platform concerns (22ef5cf)

0.0.35 (2020-11-13)

Docs

0.0.34 (2020-11-13)

Code Refactoring

  • remove babel-register.js and update babel.config.js (aec23ee)
  • setup typescript in strict mode for source code (under ./src) (11e2958)

Docs

  • rewrite some docs & add .gitattributes with linguist-vendored (1ac7bcf)
  • update docs with package 'cost-of-modules' (df2df3d)

Styling

  • rename a npm script and remove ts types (9d1f8c6)

Tests

  • add checking highlighting in help content (cd6d6ea)

0.0.33 (2020-09-22)

Docs

  • correc. link 'help' & 'version' (658339f)

0.0.32 (2020-09-22)

Docs

  • add 'analyse dependencies' to CONTRIBUTING (fdefa6a)

Tests

  • enhance test descriptions and messages (d6c98d6)

0.0.31 (2020-09-21)

Others

  • add script "analyse" (bb1e342)
  • remove unused deps 'execa' and 'listr' (425a99b)

Docs

  • add in README links to help and version entries in MANUAL (31b828f)
  • update CONTRIBUTING (43d4769)

0.0.30 (2020-09-21)

Others

  • remove script 'postinstall' (42bb5ce)

Code Refactoring

  • extract magic const, clarify args, asserts first (b4b9621)

Docs

0.0.29 (2020-09-04)

Features

  • docs: add commands 'help' and 'version'. Enhance docs (4063066)

0.0.28 (2020-09-02)

Docs

  • clarify some messages and docs related to them (daf9fde)

0.0.27 (2020-09-02)

Bug Fixes

  • avoid warning about recent node version (7b957dc), closes #5

0.0.26 (2020-09-02)

Bug Fixes

  • move 'source-map-support' from devDeps to deps (00f5828), closes #5

0.0.25 (2020-09-02)

Bug Fixes

  • remove comment from json file '.versionrc' (41d62de)

Others

  • add commitizen and commitlint (c86a0af)

Docs

  • update README and CONTRIBUTING about commit, release and publish (690ae6a)

0.0.24 (2020-09-01)

0.0.23 (2020-09-01)

0.0.22 (2020-08-31)

Bug Fixes

  • scripts: remove any deps of rmdir script (91c57e6)

0.0.21 (2020-07-02)

0.0.20 (2020-06-28)

0.0.19 (2020-06-28)

0.0.18 (2020-06-28)

0.0.17 (2020-06-28)

Bug Fixes

  • pre/postversion become pre/postrelease (7a29d35)

0.0.16 (2020-06-28)

0.0.15 (2020-06-28)

Bug Fixes

  • misplaced preset in babel config (5e1d1f8)
  • vulnerabilities with yargs-parser (6108063)

0.0.14 (2020-06-26)

0.0.13 (2020-06-20)

0.0.12 (2020-06-20)