Skip to content

MatthewLarner/read-json-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

read-json-file

Read and parse a JSON file asynchronously using a callback.

Usage

var readJson = require('read-json-file');

readJSON(pathToYourJson, function(error, data){
    if (error) {
        throw error;
    }
    console.log(data);
});

Errors

Returns any fs or JSON.Parse() errors.

Byte order markers

Byte order markers are striped before parsing.

About

Read and parse a JSON file using a callback.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published