0.1.1 • Published 5 years ago
json-contents v0.1.1
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