Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### JSONToFile
|
||||
---
|
||||
title: JSONToFile
|
||||
tags: node,json,intermediate
|
||||
---
|
||||
|
||||
Writes a JSON object to a file.
|
||||
|
||||
@ -12,4 +15,4 @@ const JSONToFile = (obj, filename) =>
|
||||
|
||||
```js
|
||||
JSONToFile({ test: 'is passed' }, 'testJsonFile'); // writes the object to 'testJsonFile.json'
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user