https://github.com/oresoftware/envar
Echo strings interpreted by bash.
https://github.com/oresoftware/envar
bash environment environment-variables nodejs npm shell
Last synced: 6 months ago
JSON representation
Echo strings interpreted by bash.
- Host: GitHub
- URL: https://github.com/oresoftware/envar
- Owner: ORESoftware
- License: mit
- Created: 2019-04-10T08:47:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T20:19:39.000Z (almost 7 years ago)
- Last Synced: 2024-04-25T08:02:25.685Z (almost 2 years ago)
- Topics: bash, environment, environment-variables, nodejs, npm, shell
- Language: Shell
- Size: 16.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
## Envar
Get strings interpreted by bash (for env var interpolation, etc).
```js
const envar = require('@oresoftware/envstr');
envar.getEnvStrings(["$age"], (err, values) => {
// err is potential error
// values is array of interpreted strings
});
envar.getEnvString("$age", (err, value) => {
// err is potential error
// value is interpreted string
});
envar.getEnvStringsp(["$age"]).then(values => {
// values is array of interpreted strings
});
envar.getEnvStringp("$age").then(val => {
// val is interpreted string
});
```
To kill the process at anytime:
```js
envar.kill(9);
```