Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 397 Bytes

DOCUMENTATION.md

File metadata and controls

16 lines (10 loc) · 397 Bytes

Documentation

You can see below the API reference of this module.

exports(path, def, cb)

safeRJson A convenient JSON file reader.

If you want to use the syncronous version, do not pass the callback function.

Params

  • String path: The path to the JSON file.
  • Object def: The default value in case the file doesn't exist.
  • Function cb: The callback function.