Skip to main content

Built and signed on GitHub Actions

Library to write out the contents of a JavaScript object structure to the file system in a granular directory structure.

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
3 months ago (0.1.4)
interface FileValueHandlerOptions

The common options passed to the file handler builder methods on interface HandlerBuilder.

These apply to HandlerBuilder.textFile, HandlerBuilder.binaryFile, HandlerBuilder.jsonFile, and HandlerBuilder.customFile.

Properties

The file name extension to append to written files. If omitted, the handler will use to a format-appropriate default.

optional
name: string

The optional name to give the handler. It is only informational and useful when debugging code with many handlers.

Add Package

deno add jsr:@scroogieboy/object-to-directory

Import symbol

import { type FileValueHandlerOptions } from "@scroogieboy/object-to-directory/interfaces";

---- OR ----

Import directly with a jsr specifier

import { type FileValueHandlerOptions } from "jsr:@scroogieboy/object-to-directory/interfaces";

Add Package

npx jsr add @scroogieboy/object-to-directory

Import symbol

import { type FileValueHandlerOptions } from "@scroogieboy/object-to-directory/interfaces";

Add Package

yarn dlx jsr add @scroogieboy/object-to-directory

Import symbol

import { type FileValueHandlerOptions } from "@scroogieboy/object-to-directory/interfaces";

Add Package

pnpm dlx jsr add @scroogieboy/object-to-directory

Import symbol

import { type FileValueHandlerOptions } from "@scroogieboy/object-to-directory/interfaces";

Add Package

bunx jsr add @scroogieboy/object-to-directory

Import symbol

import { type FileValueHandlerOptions } from "@scroogieboy/object-to-directory/interfaces";