jsonloader

The fastest and easiest way to read json files

Usage no npm install needed!

<script type="module">
  import jsonloader from 'https://cdn.skypack.dev/jsonloader';
</script>

README

jsonloader

Installation

Simply:

npm install --save jsonloader

Usage

    var jsonloader = require('jsonloader');

jsonloader is object oriented, and it's extremely simple

Say I have a file test.json, containing the following

    {
        "test": "Hello World"
    }

To access it with jsonloader, all I simply have to do is:

    var file = new jsonloader('test.json');
    
    console.log(file.test); //=> "Hello World"

It's that simple.