Socket
Book a DemoInstallSign in
Socket

@layerzerolabs/io-devtools

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/io-devtools

Utilities for working with I/O in LayerZero devtools

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
1.4K
21.93%
Maintainers
1
Weekly downloads
 
Created
Source

LayerZero

@layerzerolabs/io-devtools

NPM Version Downloads NPM License

Installation

pnpm install @layerzerolabs/io-devtools
yarn 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);

FAQs

Package last updated on 14 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts