question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

asArray should accept env-variable also with one element

See original GitHub issue

https://github.com/evanshortiss/env-var/blob/ae09f18b8bd45ed3562d532eebabb30a30cc575e/lib/accessors/array.js#L5-L13

Current behaviour: "value" - throws error because of missing delimiter (bad) "value," - returns ["value,"] (bad)

Expected result for both cases should be ["value"]. That can be fixed by removing lines 8-10.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
evanshortisscommented, Jun 14, 2019

Released in 5.0.0, thank you! 😄

0reactions
gabrieloczkowskicommented, Jun 14, 2019

@evanshortiss Since PR is merged we can close?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Defining an array as an environment variable in node.js
Short answer: You cannot. Long answer: .env variables are strings So something like. BOOLEAN = true. will be treated as
Read more >
linux - Unable to use an Array as environment variable
A bash array can not be an environment variable as environment variables may only be key-value string pairs. You may do as the...
Read more >
PowerShell Variables and Arrays - Netwrix Blog
In this article, we will move on to variables and arrays, including what they are and how we can create, remove and change...
Read more >
ASP.NET Core Web Host | Microsoft Learn
Create a host using an instance of IWebHostBuilder. This is typically performed in the app's entry point, the Main method in Program.cs ....
Read more >
Python NumPy Array Tutorial - DataCamp
Learn how to create a NumPy array, use broadcasting, access values, manipulate arrays, and much more in this Python NumPy tutorial.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found