Dot-Env Conversion v3.0.0
Changes:
auto:booleanandbooleanconversion methods now accept additional original values:- True values:
ok,Ok,OK. - False:
not,Not,NOT,none,None,NONE.
- True values:
- Binary (
0b...) , octal (0o...) and hexadecimal (0x...) number syntax are now accepted inauto:number,auto:bigint,boolean,number,bigintconversion methods. - Empty array (
[],[ ], ...) or empty object ({},{ }, ...) are now accepted inboolean(converted tofalse),number(converted to0) andbigint(converted to0n) conversion methods. - Conversion now ignores non-string environment variables.
- Add
DocumentationtoREADME.md. - Update ignore files.
- Do some small refactor.
- Enhancements:
switch(true)turns intoif ... return ...blocks.- Values that could be matched with an exact converted value now are cached in specific lookup tables -> reduce the cost of executing
ifstatements. flattenValueis now more detailed.restoreValuenow ignores non-string values.