Skip to content

Commit

Permalink
(Closes #192) removed createOutputStream()
Browse files Browse the repository at this point in the history
  • Loading branch information
jprichardson committed Apr 17, 2016
1 parent 5652b96 commit f5c1e80
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 115 deletions.
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,24 +153,6 @@ fs.copy('/tmp/mydir', '/tmp/mynewdir', function (err) {
}) // copies directory, even if it has subdirectories or files
```

### createOutputStream(file, [options])

Exactly like `createWriteStream`, but if the directory does not exist, it's created.

Examples:

```js
var fs = require('fs-extra')

// if /tmp/some does not exist, it is created
var ws = fs.createOutputStream('/tmp/some/file.txt')
ws.write('hello\n')
```

Note on naming: you'll notice that fs-extra has some methods like `fs.outputJson`, `fs.outputFile`, etc that use the
word `output` to denote that if the containing directory does not exist, it should be created. If you can think of a
better succinct nomenclature for these methods, please open an issue for discussion. Thanks.


### emptyDir(dir, [callback])

Expand Down
1 change: 0 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ assign(fs, require('./mkdirs'))
assign(fs, require('./remove'))
assign(fs, require('./json'))
assign(fs, require('./move'))
assign(fs, require('./streams'))
assign(fs, require('./empty'))
assign(fs, require('./ensure'))
assign(fs, require('./output'))
Expand Down
50 changes: 0 additions & 50 deletions lib/streams/__tests__/create-output-stream.test.js

This file was deleted.

43 changes: 0 additions & 43 deletions lib/streams/create-output-stream.js

This file was deleted.

3 changes: 0 additions & 3 deletions lib/streams/index.js

This file was deleted.

0 comments on commit f5c1e80

Please sign in to comment.