Skip to content

Node is casting all env vars to Strings #12126

@daviddias

Description

@daviddias
  • Version: v6.10.0

  • Platform: Mac OS X

  • Subsystem:

I might have just realised this now, but is it intended that all env vars are casted to Strings by default? See:

» node
> process.env.BANANAS = 3
3
> typeof process.env.BANANAS
'string'
> process.env.BANANAS = undefined
undefined
> typeof process.env.BANANAS
'string'
>

Thank you :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions