await writeJson(data, destination[, options])
const projects = [
{
name: 'firost',
url: 'https://projects.pixelastic.com/firost/',
},
{
name: 'maps',
url: 'https://gamemaster.pixelastic.com/maps/',
},
];
await writeJson(projects, './projects.json');
Files and directories will be created if they don't exist. If prettier
is
installed, your config will be applied to the file as well.
You can pass sort: false
as option to prevent the alphabetical sorting of
keys.