3.0.2 • Published 5 years ago

figaro-js v3.0.2

Weekly downloads
70
License
MIT
Repository
github
Last release
5 years ago

npm version Build Status

figaro-js

This package emulates the behavior of figaro for rails. It loads environment variables from an application.yml file into process.env.

Quickstart

In ./config/application.yml:

SOME_VAR: 'FOO'

development:
  IS_DEV: true

production:
  IS_PROD: true

In your start script:

const Figaro = require('figaro-js')

Figaro.load()

console.log(process.env.SOME_VAR) // -> 'FOO'

Using ES6 syntax:

import * as Figaro from 'figaro-js'

Figaro.load()

console.log(process.env.SOME_VAR) // -> 'FOO'

Documentation

Full module API and usage info can be found in docs.md.

Migration Guides

3.0.2

5 years ago

3.0.0

5 years ago

2.0.0

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago