@iteam/config
TypeScript icon, indicating that this package has built-in type declarations

12.1.2 • Public • Published

Config

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 ]

Readme

Keywords

none

Package Sidebar

Install

npm i @iteam/config

Weekly Downloads

67

Version

12.1.2

License

ISC

Unpacked Size

18.8 kB

Total Files

20

Last publish

Collaborators

  • mittistormen
  • momentiris
  • iteamadmin
  • hansrollman