mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-20 23:27:07 +02:00

- indonesian localization by @LyfeV - rewrote readme - added new line at the end for files that were missing it
10 lines
173 B
JavaScript
10 lines
173 B
JavaScript
import * as fs from "fs";
|
|
|
|
export default function(path) {
|
|
try {
|
|
return JSON.parse(fs.readFileSync(path, 'utf-8'))
|
|
} catch(e) {
|
|
return false
|
|
}
|
|
}
|