@narando/config

Read NODE_ENV dependent configuration files

Stats

StarsIssuesVersionUpdatedCreatedSize
@narando/config
0.36.08 months ago4 years agoMinified + gzip package size for @narando/config in KB

Readme

@narando/config

Environment dependent configuration loader. Thanks to Romuald Bulyshko for his initial implementation config.json.

Getting Started

You need to have nodejs and npm installed.

$ npm install @narando/config

Usage

Loads configuration from process.env, ./config.json and ./config.NODE_ENV.json.

import config from "@narando/config";

console.log(config); // Usable config object

Development

As this package is part of the toolkit monorepo, please refer to the top-level README to learn about hacking on this package.

Built With

  • nconf - Config loader

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.