Sha256: 9eef1bf8d1028b5f7a71b075f385a41c688c4f13e9db9af29fc9a21fda4de12f
Contents?: true
Size: 374 Bytes
Versions: 110
Compression:
Stored size: 374 Bytes
Contents
const fs = require('fs') const JSON5 = require('./') // eslint-disable-next-line node/no-deprecated-api require.extensions['.json5'] = function (module, filename) { const content = fs.readFileSync(filename, 'utf8') try { module.exports = JSON5.parse(content) } catch (err) { err.message = filename + ': ' + err.message throw err } }
Version data entries
110 entries across 85 versions & 13 rubygems