jsonc-register
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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');

Package Sidebar

Install

npm i jsonc-register

Weekly Downloads

14

Version

0.2.0

License

MIT

Unpacked Size

1.9 kB

Total Files

6

Last publish

Collaborators

  • natemoo-re