0.1.1 • Published 5 years ago

json-contents v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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 Release
0.1.1 Bug Fixes