12345678910111213141516171819202122 |
- const fs = require('fs');
- function internalModuleReadJSON(path) {
- let string
- try {
- string = fs.readFileSync(path, 'utf8')
- } catch (e) {
- if (e.code === 'ENOENT') return []
- throw e
- }
-
-
-
- const containsKeys = true
- return [string, containsKeys]
- }
- module.exports = {
- internalModuleReadJSON
- };
|