bevry / envfile

Parse and write environment files with Node.js
Other
61 stars 10 forks source link

Support multiline values #233

Closed gonzaloriestra closed 8 months ago

gonzaloriestra commented 8 months ago

Adds support for multiline values:

echo -e "a=\"1\n2\"\nb=3" | npm run our:bin env2json
  {"a":"1\n2","b":"3"}

echo '{"a":"1\\n2","b":3}' | npm run our:bin json2env
  a="1\n2"
  b=3
gonzaloriestra commented 8 months ago

@balupton could you please review this? Thanks!

balupton commented 8 months ago

Tests failed on Windows. Can you fix or reproduce that locally?

balupton commented 8 months ago

Actually seems the windows failure is prior to this PR https://github.com/bevry/envfile/actions/runs/7360505711

will merge so it gets published to the @next npm tag, and then will look into windows and publishing to latest either this week or next week

if you can fix the windows tests, in a subsequent PR that would be awesome!

balupton commented 8 months ago

Actually, leave the windows issue with me. I believe I know what it is.