12.1.2 • Published 3 years ago

@iteam/config v12.1.2

Weekly downloads
37
License
ISC
Repository
github
Last release
3 years ago

Config

npm.io npm version

This is useful when environment variables need to be nested and still be camel cased.

Documentation

Full documentation is found at Iteam Config

Installation

npm install @iteam/config

or use supreme to install and set up config files automatically:

npx @iteam/supreme add config

Simple usage

const config = require('@iteam/config')({
  file: `${__dirname}/../config.json`,
  defaults: {
    foo: {
      bar: 'baz',
    },
    baz: [1, 2, 3],
  },
})

config.get('foo') // { bar: 'baz' }
config.get('foo:bar') // 'baz'
config.get('baz') // [ 1, 2, 3 ]
12.1.2

3 years ago

12.1.1

4 years ago

12.1.0

5 years ago

12.0.1

5 years ago

12.0.0

5 years ago

10.0.1

5 years ago

10.0.0

5 years ago