0.2.0 • Published 4 years ago
jsonc-register v0.2.0
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');0.2.0
4 years ago