README
4me.env
This library provides environment data to applications in the 4ME ecosystem.
Usage
Example :
import getEnv from '4me.env';
const env = getEnv('LFEE');
// {sectors: [Object object]}
Known environments
This library supports multiple environments definition as 4ME is deployed in multiple places.
Known environments are :
LFEE
: Reims UAC
Nested APIs
API sectors
import getEnv from '4me.env';
const sectors = getEnv('LFEE').sectors;
Full API in docs/sectors.md
API clients
import getEnv from '4me.env';
const clients = getEnv('LFEE').clients;
Full API in docs/clients.md
API frequencies
import getEnv from '4me.env';
const frequencies = getEnv('LFEE').frequencies;
Full API in docs/frequencies.md
API components
import getEnv from '4me.env';
const frequencies = getEnv('LFEE').components;
Note: This API is only available is
react
is available torequire
. This allows the use of this libary on the backend without having to installreact
as a dependency. Full API in docs/components.md
API XMAN
import getEnv from '4me.env';
const frequencies = getEnv('LFEE').xman;
Full API in docs/xman.md