1.0.0 • Published 6 years ago
save-json-file v1.0.0
save-json-file
Save a JSON object to a file.
Installation
yarn add save-json
Usage
This package exports a function accepting two parameters:
- json: the json object to save
- filename (optional, defaults to "untitled"): the file name
Example:
import saveJSON from 'save-json-file';
saveJSON([
{
label: 'Publish npm package',
isDone: false
},
{
label: 'Write some documentation',
isDone: false
}
], 'todos');
1.0.0
6 years ago