Skip to content

Add quotes on stringify #239

Open
Open
@alexkiro

Description

@alexkiro

At the moment the stringify function doesn't add any quotes for the values. Even if the value may need it. For example anything after # is usually a comment. So the value should be quoted for cases like:

> const {stringify} = require("envfile")
undefined
> stringify({BACKGROUND: "#000"})
'BACKGROUND=#000\n'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions