Skip to content

@vtj


@vtj / node / writeJson

Function: writeJson()

Call Signature

writeJson(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

Defined in

packages/node/src/fs.ts:29

Call Signature

writeJson(file, obj, callback): void

Parameters

file

Path

obj

any

callback

WriteCallback

Returns

void

See

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

Defined in

packages/node/src/fs.ts:29

Call Signature

writeJson(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

Defined in

packages/node/src/fs.ts:29

Released under the MIT License.