New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fileconfig

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fileconfig

json config loader

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by566.67%
Maintainers
1
Weekly downloads
 
Created
Source

fileconfig

Exprimenting with json configuration file loading

Installation

npm install fileconfig --save

Usage

assuming you have a configuration folder as follow :

+ /path/to/config/folder
  + apps
    + demo
      this.json
      + users
        hasnaer.json
  • apps/demo/this.json
{
  "name" : "Demo Application"
}
  • apps/demo/users/hasnaer.json
{
  "fullname" : "Hasnae Rehioui"  
}

Then you can fetch data as follow :

var fileconfig  = require('fileconfig');
var root        = fileconfig.create("/path/to/config/folder");

console.log(root);
console.log(root.apps.demo.name);
console.log(root.apps.demo.users.hasnaer.name);

TODO

Akh a whole bunch, in the process of rereading my hacks and documenting them

Keywords

FAQs

Package last updated on 13 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc