The functions in this module are the lower-level implementation details of the public API. They allow advanced consumers to control precisely how the library interacts with the file system or provide their own file system-like implementations.
The newFileWriter
function is a platform-neutral way of creating the file writing abstraction used
throughout this library.
The newDirectoryCreator
function is a platform-neutral way of creating the directory creation abstraction
used throughout this library.
The DefaultHandlerBuilder
is the default implementation of the HandlerBuilder
interface.
It is initialized with FileWriter
and DirectoryCreator
implementations. It is used to build all the handlers known to the library in a fluent way.
An implementation of interface HandlerBuilder
that provides default versions of the known
value storage handlers.
Create a new directory creator that can create local directories on the current platform.
Create a new file writer appropriate for writing local files on the current platform.
Add Package
deno add jsr:@scroogieboy/object-to-directory
Import symbol
import * as mod from "@scroogieboy/object-to-directory/factories";
---- OR ----
Import directly with a jsr specifier
import * as mod from "jsr:@scroogieboy/object-to-directory/factories";
Add Package
npx jsr add @scroogieboy/object-to-directory
Import symbol
import * as mod from "@scroogieboy/object-to-directory/factories";
Add Package
yarn dlx jsr add @scroogieboy/object-to-directory
Import symbol
import * as mod from "@scroogieboy/object-to-directory/factories";
Add Package
pnpm dlx jsr add @scroogieboy/object-to-directory
Import symbol
import * as mod from "@scroogieboy/object-to-directory/factories";
Add Package
bunx jsr add @scroogieboy/object-to-directory
Import symbol
import * as mod from "@scroogieboy/object-to-directory/factories";