jsonc-register
v0.2.0
Published
A require hook to load JSON files with comments
Downloads
93
Maintainers
Readme
jsonc-register
json-register
hooks into Node's require
function to load .json
or .jsonc
files that support comments.
const { register } = require('jsonc-register');
register();
const a = require('/path/to/my-file.json');
const b = require('/path/to/my-file.jsonc');