MCPcopy Create free account
hub / github.com/6pac/SlickGrid / outputFileSync

Function outputFileSync

scripts/fs-utils.mjs:9–16  ·  view source on GitHub ↗
(file, ...args)

Source from the content-addressed store, hash-verified

7import { dirname } from 'node:path';
8
9export function outputFileSync(file, ...args) {
10 const dir = dirname(file);
11 if (!existsSync(dir)) {
12 mkdirSync(dir, { recursive: true });
13 }
14
15 writeFileSync(file, ...args);
16}
17
18export function readJSONSync(file, options = {}) {
19 if (typeof options === 'string') {

Callers 1

buildSassFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected