Skip to content

writeFile options argument broken  #28

@sam-github

Description

@sam-github

The docs are wrong:

https://github.com/jprichardson/node-jsonfile#writefilefilename-options-callback

they don't describe the data argument, I assume it should be writeFile(filename, obj, [options], callback)

Also, documented behaviour is

Pass in any fs.writeFile options

That includes the string, 'utf-8', but passing in a string was broken by:

e4d8e67

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions