Skip to content

Function: nodeStorage()

Documentation / @wtf/platform-fs-node / storage / nodeStorage

function nodeStorage(): object;

Defined in: packages/platform-fs-node/src/storage.ts:22

The storage of Node, as the Storage Standard has a navigator.storage: getDirectory() the handle of the folder /, the root of the disk the process is on, of nodeDirectory, made at the first call and the same each call after. A program resolves its paths by path against dirs.cwd, and walks down from the root to each, as at of @wtf/platform-fs/path does.

const platform = nodePlatform({ fetch, storage: nodeStorage() })

Returns

object

NameTypeDefined in
getDirectory()() => Promise<NodeShapedDirectoryHandle>packages/platform-fs-node/src/storage.ts:22