Skip to content

dump: option to ignore unacceptable types #76

@bryanlarsen

Description

@bryanlarsen

If I try to safeDump an object with a function, I get:

JS-YAML: unacceptabe kind of an object to dump (function)

I work around it with:

yaml.safeDump(JSON.parse(JSON.stringify(obj)))

but that's kind of silly. It would be nice to have an option to ignore stuff that's "unacceptabe".

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