mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 08:34:28 +02:00
Prettier JSON output
This commit is contained in:
@@ -210,7 +210,7 @@ function exists(filepath) {
|
|||||||
|
|
||||||
function save(results, path) {
|
function save(results, path) {
|
||||||
path = resolve(process.cwd(), path)
|
path = resolve(process.cwd(), path)
|
||||||
fs.writeFileSync(path, JSON.stringify(results))
|
fs.writeFileSync(path, JSON.stringify(results, null, 2))
|
||||||
}
|
}
|
||||||
|
|
||||||
function serializeResult(event) {
|
function serializeResult(event) {
|
||||||
|
Reference in New Issue
Block a user