Shared local configuration for Mainframe packages.
npm install @mainframe/configShared local configuration for Mainframe packages.
``sh`
yarn add @mainframe/config
The Environment class provides a namespaced persisted configuration and paths to be used.
All other functions need to be provided with an Environment instance they use to interact.
`js
import { Environment, getDaemonSocketPath } from '@mainframe/config'
const env = new Environment('development')
const socketPath = getDaemonSocketPath(env)
`
Arguments
1. name: string: name of the environment
#### .name
Returns string the environment name
#### .config
Returns Conf instance
#### .paths
Returns env paths shared by the platform
Arguments
1. env: Environment
Returns string the path to the daemon binary
Arguments
1. env: Environmentpath: string
1. : the path to the daemon binary
Arguments
1. env: Environment
Returns string the socket path
Arguments
1. env: Environmentpath: string`: the socket path
1.
MIT