@shanzhai/delete-step
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

@shanzhai/delete-step Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai step which deletes a file or directory (including any child files or directories) if it exists.

Usage

Within a trigger's event handler, return an instance of DeleteStep similar to the following:

new DeleteStep(
  `A description of the operation being performed`,
  [`a`, `path`, `to`, `a`, `file`, `or`, `directory`, `to`, `delete`]
)

If a file or directory called a/path/to/a/file/or/directory/to/delete exists, it will be deleted.

Directories will be deleted even if they are not empty.

If no such file or directory exists, nothing happens.

Dependencies

This package has no runtime dependencies.

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status

Readme

Keywords

none

Package Sidebar

Install

npm i @shanzhai/delete-step

Weekly Downloads

1

Version

0.0.11

License

MIT

Unpacked Size

5.16 kB

Total Files

5

Last publish

Collaborators

  • jameswilddev