json-contents
v0.1.1
Published
Get the content of any JSON file
Downloads
4
Readme
JSON-CONTENTS
Get the contents of any JSON file
Installation
$ npm i json-contents --save
Usage
Create Your JSON File
{
"readMyContent": "abc",
"mineToo": "123"
}
Logging All Contents Of The File
const Content = require('json-contents');
const file = Content('myFile');
console.log(file); // Logs Contents Of File
Getting A Specific Item From The file
const Content = require('json-contents');
const file = Content('myFile');
console.log(file.mineToo); // Logs Contents Of File's "mineToo"
Changelog
0.1.0
Official Release0.1.1
Bug Fixes