Skip to main content

@webda/coreReadme | API


Variable: FileUtils

const FileUtils: StorageFinder & Object

Allow save/load of yaml or json file

Type declaration

clean

clean: (...files) => void

Parameters

• ...files: string[]

Returns

void

load

load: (filename, format?) => any

Parameters

filename: string

format?: Format

Returns

any

save

save: (object, filename, publicAudience?, format?) => void

Parameters

object: any

filename: string

publicAudience?: boolean

format?: Format

Returns

void

Source

packages/core/src/utils/serializers.ts:143