Skip to content

Function: homeFS()

homeFS(relativeRoot?, options?): LocalFileSystem

LocalFileSystem rooted under resolveLocalHome, with relativeRoot joined as a relative path (leading / / ~ stripped so the result stays under home).

string = "."

OsFileSystemOptions = {}

LocalFileSystem

const cache = homeFS(".cache/my-app");
await cache.writeFile("state.json", "{}");