Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Writer examples in readme are wrong #47

Open
jasonkarns opened this issue Mar 24, 2016 · 1 comment
Open

Writer examples in readme are wrong #47

jasonkarns opened this issue Mar 24, 2016 · 1 comment

Comments

@jasonkarns
Copy link

All three Writer examples on the readme invoke end on the return of ``write(). But .write()` returns booleans, not objects with `.end` methods.

fstream
  .Writer({ path: "path/to/file"
          , mode: 0755
          , size: 6
          })
  .write("hello\n")
  .end() //=> TypeError: fstream.Writer(...).write(...).end is not a function
@jasonkarns
Copy link
Author

Apparently the Writer functions need invoked as constructors, too, which is not how they are shown in the readme

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant