mirror of
https://github.com/iptv-org/api.git
synced 2025-05-12 10:00:07 -04:00
Update update.js
This commit is contained in:
parent
340cc99711
commit
01ea93c423
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ glob(`${DATABASE_DIR}/*.csv`, async function (err, files) {
|
||||||
const outputFile = `${OUTPUT_DIR}/${inputFilename}.json`
|
const outputFile = `${OUTPUT_DIR}/${inputFilename}.json`
|
||||||
|
|
||||||
const json = await csv.load(inputFile)
|
const json = await csv.load(inputFile)
|
||||||
fs.writeFileSync(path.resolve(outputFile), JSON.stringify(json, null, 2))
|
fs.writeFileSync(path.resolve(outputFile), JSON.stringify(json))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue