43 Commits

Author SHA1 Message Date
Todd Bluhm
18e8a28148
fix(recursive): cleaned up after rebase 2025-08-06 00:09:16 -08:00
Nicholas Krul
53f4549001
feat: recursive embedding of env vars in env vars 2025-08-06 00:05:00 -08:00
Nicholas Krul
e5d3a27a54
feat: allow bracers when processing vars 2025-08-06 00:02:11 -08:00
Todd Bluhm
e66cfc10f1
chore(package): update dependencies 2020-03-20 17:20:18 -05:00
Todd Bluhm
c0ce28cb84
chore(package): updated ts-standard version
- improved code readability of options parsing
- added missing code coverage test cases
2020-02-17 17:43:08 -06:00
Todd Bluhm
020998a077
docs(readme): added expand env and silent docs
- Added some additional fun and helpful emoji to the docs
2020-02-10 00:43:27 -06:00
Todd Bluhm
27a2705706
feat(flags): add silent flag to ignore errors
- add silent flag to ignore env-cmd errors and missing file errors, but still terminate on signals and child process failures
2020-02-09 21:34:52 -06:00
Todd Bluhm
f92f8b51ff
feat(signal-termination): handle error codes in the signal value
- fix improper test case termination due to signal termination listener leakage
2019-12-29 02:40:32 -06:00
Todd Bluhm
fda25184a6
chore(package): update dependencies
- fixed lint errors
2019-12-28 23:41:14 -06:00
Todd Bluhm
3656bb0752
chore(package): update commander dependency 2019-11-16 00:43:02 -06:00
Todd Bluhm
5d685b67ff
feat(flags): add --verbose flag and option 2019-11-15 12:40:37 -06:00
Todd Bluhm
1cd2feb837
Fixed bug causing env-cmd to fail when no failure had occurred 2019-08-30 01:29:52 -05:00
Todd Bluhm
0106295dd8
Update changelog 2019-08-30 00:05:45 -05:00
Gregory Waxman
29dcda819a Fixes #79 (#80)
* Fixes #79

* Updated tests to properly reject rather than throw and fixed another missing await
2019-08-28 02:21:53 -05:00
Todd Bluhm
5eaff2cb5a
Fix regex when parsing and preserving newline characters in env values 2019-06-05 16:05:32 -05:00
Todd Bluhm
09ffda4abf
Publish v9.0.2
- Updated test cases to bring coverage back to 100%
- Updated package.json version number
- Update changelog
2019-05-30 00:58:16 -05:00
Todd Bluhm
012230dd8a
Exit with non-zero error code when an error occurs
- Added an `npm run watch` command auto-recompilation of typescript files
- Updated Changelog
2019-05-29 23:47:16 -05:00
Todd Bluhm
2dafb745f7
Fix bug where command flags were stolen by commander 2019-05-05 22:27:37 -05:00
Todd Bluhm
b1ad7e4902
Documentation updates and lint command changes
- Fixed some minor documentation issues
- Added tsc command to npm run lint to check for typescript errors
when linting
2019-05-05 21:11:19 -05:00
Todd Bluhm
4463e553e7
Updates to Readme and CLI help text 2019-05-04 16:01:59 -05:00
Todd Bluhm
3534069ece Add --use-shell option
- Added test cases for new option
- Fixed up other test cases
- Fixed code coverage issue
2019-05-04 05:35:26 -05:00
Todd Bluhm
25de68f281
Fix newline character parsing in .env files 2019-05-04 03:50:48 -05:00
Todd Bluhm
dc06c40e9c
Add in programmatic API docs 2019-05-04 03:18:20 -05:00
Todd Bluhm
c6220bc86f
Dropped support for node v6 since its now deprecated
- Updated Changelog
2019-05-04 02:57:30 -05:00
Todd Bluhm
7da026a121
Drop node v4 support, updated dev deps and added examples link
- Drop support for node v4
- Update dev dependencies sinon and nyc
- Updated package-lock file
- Updated license file year text
- Added examples link to readme
- Added node 10 version to automated testing
2018-10-19 15:38:44 -05:00
Todd Bluhm
ad630ef564
Updated package.json and lock file to address npm audit concerns 2018-05-17 14:19:47 -05:00
Todd Bluhm
c541e9a308
Properly propagate the correct signals/codes from the child process 2018-04-24 03:46:04 -05:00
Todd Bluhm
a4b21438a1
8.0 release 2018-04-22 13:07:32 -05:00
Todd Bluhm
569b5a9e6b
Fix bugs in parent and spawn process termination (#36)
* Fix spawn and parent process killing
- Implemented a broader solution to killing the parent/spawned process
that includes hooks for certain specific signals and then the generic
node exit event
- Added test cases to support the new termination solution

* Updated a bunch of node dependencies

* Updated change log
2018-03-21 03:02:20 -05:00
Todd Bluhm
1bf9451ae0
Stripe spaces out around equal sign when parsing an env file. (#35)
* Stripe spaces out around both key and value when parsing an env file.
2018-03-21 01:07:38 -05:00
Todd Bluhm
5987f82065 Update package.json to 7.0.0 and add entry to change log 2017-09-25 13:46:03 -05:00
Todd Bluhm
26d8eaad9e Update package.json and changelog with version 6.0.0 2017-09-21 17:45:58 -05:00
Todd Bluhm
51359195d9
Updated package to 5.1.0
- Added new contributor
- Updated changelog
2017-04-18 12:44:13 -04:00
Todd Bluhm
ea9d858e4a
5.0 release
- Updated Changelog
- Updated package.json
- Updated License file for new year
2017-03-03 01:43:56 -05:00
Todd Bluhm
71e9c85e78
Update version to 4.0 due to double quotes breaking change 2016-12-06 21:46:39 -08:00
Todd Bluhm
f37249e467
Added in support for .env-cmdrc file and updated to 3.0.0 2016-12-03 01:44:39 -06:00
Todd Bluhm
288b5a506c
Publish version 2.2.0
- Update changelog
- Update package.json
2016-09-23 02:00:49 -04:00
Todd Bluhm
fbb5ac6d68
Regex for parsing, support inline comments, support key value format
- Moved over to using regex for parsing the env file
- Added support for inline comments
- Added support for `key value` pairing file format
- Will now ignore invalid lines in env file, instead of throwing an error
- Removed old test cases
- Added more specific test cases
2016-08-18 16:48:40 -05:00
Todd Bluhm
0d1841c1e1 Added version number shield and fixed changelog formatting 2016-08-17 16:34:16 -05:00
Todd Bluhm
39616b70b1 Removed -e/--env flags, allow # comment lines in env file, bug fixes
- Removed the -e/--env flags in favor of just requiring the first arg to
env-cmd to be the relative path to the env file
- Comments are now valid in env files using the #
- Empty lines in env file are now ignored
- Fixed bug env file no longer needs to end on a newline
2016-08-17 16:24:01 -05:00
Todd Bluhm
39c0760630 Added help text, handle uncaught errors, added .npmignore 2016-08-17 00:55:16 -05:00
Todd Bluhm
56d10fa34f Fix npm badges 2016-08-17 00:08:32 -05:00
Todd Bluhm
11c1765192 Use more standardized npm /bin folder for executable
- Updated Readme
- Add Changelog
- Fix usage as npm .bin file
2016-08-16 23:56:47 -05:00