Skip to content

@vtj


@vtj / node / readJson

Variable: readJson()

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

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

Call Signature

(file, options, callback): void

Parameters

file

Path

options

JFReadOptions

callback

ReadCallback

Returns

void

See

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

Call Signature

(file, callback): void

Parameters

file

Path

callback

ReadCallback

Returns

void

See

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

Call Signature

(file, options?): Promise<any>

Parameters

file

Path

options?

JFReadOptions

Returns

Promise<any>

See

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

Released under the MIT License.