studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
14 lines (13 loc) • 324 B
JavaScript
import _boxen from "boxen";
import { Effect } from "../../effect.js";
const effectBoxen = Effect.fn(
(fn) => Effect.try({
try: () => fn(_boxen),
catch: (cause) => new Error(
`Boxen Error: Failed to run boxen: ${cause instanceof Error ? cause.message : String(cause)}`
)
})
);
export {
effectBoxen
};