json-load

load json safety

Usage no npm install needed!

<script type="module">
  import jsonLoad from 'https://cdn.skypack.dev/json-load';
</script>

README

json-load

load json safety

Installation

npm install json-load

Usage

var json-load = require('json-load')

var config = json-load('package.json')

if (!config.error){
  console.log(config);
  console.log(config.name);
}

License

MIT (http://www.opensource.org/licenses/mit-license.php)