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

Version Path
trusty-cms-6.3.1 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.51 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.50 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.49 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.48 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.47 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.46 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.45 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.44 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.43 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.42 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.41 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.40 node_modules/json5/lib/register.js
wice_grid-7.1.0 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.39 node_modules/json5/lib/register.js
immosquare-cleaner-0.1.38 node_modules/json5/lib/register.js
optimacms-0.1.61 spec/dummy/node_modules/css-loader/node_modules/json5/lib/register.js
optimacms-0.1.61 spec/dummy/node_modules/@rails/webpacker/node_modules/json5/lib/register.js
optimacms-0.1.61 spec/dummy/node_modules/@babel/core/node_modules/json5/lib/register.js
optimacms-0.1.61 spec/dummy/node_modules/file-loader/node_modules/json5/lib/register.js