Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Fix some spelling mistakes in README #66

Merged
merged 4 commits into from Jul 21, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions readme.markdown
Expand Up @@ -53,12 +53,12 @@ curl -sS registry.npmjs.org/event-stream | node pretty.js

## through (write?, end?)

Reemits data synchronously. Easy way to create syncronous through streams.
Re-emits data synchronously. Easy way to create synchronous through streams.
Pass in optional `write` and `end` methods. They will be called in the
context of the stream. Use `this.pause()` and `this.resume()` to manage flow.
Check `this.paused` to see current flow state. (write always returns `!this.paused`)

this function is the basis for most of the syncronous streams in `event-stream`.
this function is the basis for most of the synchronous streams in `event-stream`.

``` js

Expand All @@ -74,7 +74,7 @@ es.through(function write(data) {

##map (asyncFunction)

Create a through stream from an asyncronous function.
Create a through stream from an asynchronous function.

``` js
var es = require('event-stream')
Expand Down Expand Up @@ -121,7 +121,7 @@ fs.createReadStream(file, {flags: 'r'})
}))
```

`split` takes the same arguments as `string.split` except it defaults to '\n' instead of ',', and the optional `limit` paremeter is ignored.
`split` takes the same arguments as `string.split` except it defaults to '\n' instead of ',', and the optional `limit` parameter is ignored.
[String#split](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split)

## join (separator)
Expand All @@ -146,13 +146,13 @@ es.merge(

## replace (from, to)

Replace all occurences of `from` with `to`. `from` may be a `String` or a `RegExp`.
Replace all occurrences of `from` with `to`. `from` may be a `String` or a `RegExp`.
Works just like `string.split(from).join(to)`, but streaming.


## parse

Convienience function for parsing JSON chunks. For newline separated JSON,
Convenience function for parsing JSON chunks. For newline separated JSON,
use with `es.split`

``` js
Expand Down