0.1.13 • Published 8 months ago

@layerzerolabs/io-devtools v0.1.13

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

Installation

pnpm install @layerzerolabs/io-devtools
pnpm install @layerzerolabs/io-devtools
npm install @layerzerolabs/io-devtools

API Documentation

Filesystem utilities

isDirectory(path)

Returns true if specified filesystem path points to a directory, false otherwise. Does not throw if path does not exist on the filesystem, instead returns false

isFile(path)

Returns true if specified filesystem path points to a file, false otherwise. Does not throw if path does not exist on the filesystem, instead returns false

isReadable(path)

Returns true if specified filesystem path can be read by the current user, false otherwise. Does not throw if path does not exist on the filesystem, instead returns false

Standard input/output utilities

promptToContinue(message, defaultValue)

Asks the user whether they want to continue and reads the input from the CLI standard input. By default the question displayed is Do you want to continue? and the default response is yes

const goahead = await promptToContinue();

// To ask a different question
const goahead = await promptToContinue("Are you sure?");

// To default the response to false, good for important and unsafe decisions
const goahead = await promptToContinue("Are you sure?", false);
0.1.13

8 months ago

0.1.10

1 year ago

0.1.11

12 months ago

0.1.12

10 months ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago