- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
14 lines
374 B
JavaScript
14 lines
374 B
JavaScript
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
|
|
}
|
|
}
|