Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    \$\begingroup\$ What about writing c or x to the file? Saves 2 bytes. Also, doesn't require`fs` work? \$\endgroup\$ Commented Apr 7, 2016 at 14:43
  • 1
    \$\begingroup\$ @Charlie Good point with writing c or x. require`fs` unfortunately doesn't work, because using backticks to call a function calls it with the first arguments as ["fs"] (array, which first and only element is the passed string) instead of "fs" (just the string). Try console.log`test` for example. \$\endgroup\$ Commented Apr 7, 2016 at 15:02