UNPKG

@visulima/fs

Version:

Human friendly file system utilities for Node.js

19 lines (13 loc) 894 B
export { J as JSONError } from './packem_shared/json-error-ZPgZIXcg.d.mjs'; import { J as JsonValue, s as CodeFrameOptions, e as JsonReviver } from './packem_shared/observable-like.d-CJo2GVD9.d.mjs'; export { toPath } from '@visulima/path/utils'; import 'node:fs'; import 'yaml'; declare const assertValidFileContents: (contents: any) => void; declare const assertValidFileOrDirectoryPath: (fileOrDirectoryPath: any) => void; declare function parseJson<T = JsonValue>(string: string, filename?: string, options?: CodeFrameOptions): T; declare function parseJson<T = JsonValue>(string: string, reviver: JsonReviver, fileName?: string, options?: CodeFrameOptions): T; declare const stripJsonComments: (jsonString: string, { whitespace }?: { whitespace?: boolean | undefined; }) => string; export { assertValidFileContents, assertValidFileOrDirectoryPath, parseJson, stripJsonComments };