1.1.0 • Published 6 years ago

@comocapital/config v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

@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

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago