@comocapital/config

1.1.0 • Public • Published

@comocapital/config

Our shared application config loader. The main difference from plain cosmiconfig is support for default options.

The name of application config should be one of:

  • field comocapital in package.json
  • .comocapitalrc
  • .comocapitalrc.json
  • .comocapitalrc.yaml
  • .comocapitalrc.js
  • comocapital.config.js

Usage

const comoconfig = require('@comocapital/config');

const config = comoconfig.sync({ demo: false });

For async loading:

const comoconfig = require('@comocapital/config');

async function main() {
  const config = await comoconfig({ demo: false });
}

License

MIT, 2018 © Como Capital

Readme

Keywords

Package Sidebar

Install

npm i @comocapital/config

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

2.65 kB

Total Files

4

Last publish

Collaborators

  • reklatsmasters