1 contributor
Like
Install write-json-file as a package?
Copied
npm i @bit/amit.json.global.write-json-file
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
writeJsonFile (
file:
string
,data
) Write json to file - (string or object)
Example
Arguments
file:
string
path to file(path must exist)
data
json string or Object to write
Returns
promise(jsonString)
Test Summary
writeJsonFile write json object to file | Pass |
writeJsonFile write json string to file | Pass |
writeJsonFile validate written file | Pass |
writeJsonFile when sending broken json should get exception | Pass |