Skip to content

@vtj


@vtj / node / writeJson

Variable: writeJson()

const writeJson: {(file, obj, options, callback): void; (file, obj, callback): void; (file, obj, options?): Promise<void>; } = fs.writeJson

Defined in: packages/node/src/fs.ts:29

Call Signature

(file, obj, options, callback): void

Parameters

file

Path

obj

any

options

JFWriteOptions

callback

WriteCallback

Returns

void

See

https://github.com/jprichardson/node-jsonfile#writefilefilename-obj-options-callback

Call Signature

(file, obj, callback): void

Parameters

file

Path

obj

any

callback

WriteCallback

Returns

void

See

https://github.com/jprichardson/node-jsonfile#writefilefilename-obj-options-callback

Call Signature

(file, obj, options?): Promise<void>

Parameters

file

Path

obj

any

options?

JFWriteOptions

Returns

Promise<void>

See

https://github.com/jprichardson/node-jsonfile#writefilefilename-obj-options-callback

Released under the MIT License.