load-config-json

0.0.2 • Public • Published

Just like the "config" function in Laravel

Jump Start

const LoadConfig = require('load-config-json');
const path = require('path');
const loadConfig = new LoadConfig(path.resolve(__dirname, '../config'));
let value = loadConfig.config('JsonName.key.secondKey.ThirdKey');
console.log(value);

Readme

Keywords

Package Sidebar

Install

npm i load-config-json

Weekly Downloads

2

Version

0.0.2

License

ISC

Last publish

Collaborators

  • alonprince