Framework: packages:json commented - x684867/nemesis_server GitHub Wiki

PURPOSE:

This package extends the JSON.commented object to allow a JSON file to contain C-style
comments.  The JSON specification does not allow such comments (which means that JSON
cannot parse commented files and the require() function cannot load them either.  The
result is then a JSON file which is poorly documented...creating the problems this
package resolves.

DEPENDENCIES:

fs (node.js builtin)

FILES:

Filename Description
JSON-commented.js JavaScript (node.js) module file which provides an init() method

DESIGN NOTES

JSON.commented.parse() -->Strip comments from the input string and use JSON.parse() to parse the result. JSON.commented.load() -->load a file then call JSON.commented.parse() to process the content.

⚠️ **GitHub.com Fallback** ⚠️