Zombie Navigator API (ZAPI) documentation
- Version:
- 0.4.0
- Copyright:
- Copyright © 2015 Zombie Navigator Developers
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
The latest version of the GNU AGPL should be available here: https://www.gnu.org/licenses/agpl.html
- Copyright © 2015 Zombie Navigator Developers
- License:
- AGPL-3.0+
- Source:
Namespaces
Members
(inner) env :object
Access environment variables (use getEnvName() to get the real (mapped)
name of a variable)
Type:
- object
- Since:
- 0.4.0
- Source:
Example
const {env, getEnvName} = require('zombie/zombie');
env.my_variable; // may be empty ('')
getEnvName('my_variable'); // real variable name
Methods
(inner) getEnvName(name) → {string}
Get the real name of an environment variable
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
- Since:
- 0.4.0
- Source:
Returns:
- Type
- string