1.3.2 • Published 12 months ago

temp-dir-cli v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

temp-dir-cli

This CLI tool creates a temporary directory and opens it in the explorer.

Upon execution, it creates a yyyy-mm-dd directory inside the temp directory in the home directory and opens that directory in the explorer. If the directory already exists, it opens the existing directory. Optionally, you can also create a new directory with a different name.

By specifying a title as an argument, you can create a yyyy-mm-dd_[title] directory.

During execution, it cleans up any empty directories inside the temp directory.

Install

npm install -g temp-dir-cli

Usage

You can use the tool with either of the following commands:

tempdir [title] [options...]

Options

ArgumentDescription
titleTitle to add to the directory.
-n or --new-directoryCreate the directory with different name, if the directory already exists.
-q, --quietCreate the directory without opening it.
--rootOpen the temp directory.

Example

Create a temporary directory

tempdir

This command will create a directory named with the current date, e.g., 2024-07-19.

Create temporary directory with specified title

tempdir Foo

This command will create a directory named 2024-07-19_Foo.

Create temporary directory with different name, if the directory already exists.

tempdir -n

If a directory named 2024-07-19 already exists, this command will create a directory named 2024-07-19_1.

1.3.2

12 months ago

1.3.1

12 months ago

1.3.0

12 months ago

1.2.2

12 months ago

1.2.1

12 months ago

1.2.0

12 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago