naholyr/node-every-stream — Issue #1: Proposal: Stream(DSN, options)
Author: cjoudrey
Created: 2011-11-19 22:19:18+00:00
State: open

Some streams such as S3 have options that cannot be defined in the DSN.

I suggest we use the DSN to specify the `key`, `secret`, `bucketname` and `path` for this driver:

```js
Stream('test.png').pipe(Stream('s3://key:secret@bucketname/path/to/file'))
```

We can use the new `options` parameter to specify additional options:

```js
Stream('test.png').pipe(Stream('s3://key:secret@bucketname/path/to/file', {
'cannedAcl': 'public-read',
'headers': {}
}))
```

We would essentially be merging the parsed DSN with the options object.