|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
277 bytes
|
| Line | |
|---|
| 1 | 'use strict'
|
|---|
| 2 |
|
|---|
| 3 | const { stringify } = require('jsonfile/utils')
|
|---|
| 4 | const { outputFile } = require('../output-file')
|
|---|
| 5 |
|
|---|
| 6 | async function outputJson (file, data, options = {}) {
|
|---|
| 7 | const str = stringify(data, options)
|
|---|
| 8 |
|
|---|
| 9 | await outputFile(file, str, options)
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | module.exports = outputJson
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.