Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Llamas committed Aug 31, 2013
1 parent c84db21 commit f4cd571
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 53 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CHANGES
examples
test
diagram.xml
.npmignore
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,53 @@ _Node.js project_

#### Buffered binary reader with a fluent api ####

Version: 0.0.1

The BinaryReader is a wrapper around the `fs.read()` function. It has an internal buffer that maintains the last chunk of data read from disk, so it minimizes the number of i/o calls. If the requested data is already in the buffer it doesn't perform any i/o call and the data is copied from the buffer. It also implements a fluent interface for your ease.

#### Installation ####

```
npm install binary-reader
```

#### Documentation ####

- [What are its uses?](#uses)
- [How it works?](#diagrams)

#### Functions ####

- [_module_.open(path[, options]) : Reader](#open)

#### Objects ####

- [Reader](#Reader)

---

<a name="uses"></a>
__What are its uses?__

Anything that reads binary files. These are the benefits you'll win:

- Read big binary files without caring about how to retrieve the data and without implementing your own internal cursor system.
- Avoids the callback nesting. It uses a very lightweight asynchronous control flow library: [deferred-queue](https://github.com/gagle/node-deferred-queue).
- Eases the error handling.

---

<a name="diagrams"></a>
__How it works?__

---

<a name="open"></a>
___module_.open(path[, options]) : Reader) : EventEmitter__



---

<a name="Reader"></a>
__Reader__
Binary file added diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions diagram.xml

Large diffs are not rendered by default.

53 changes: 0 additions & 53 deletions t.js

This file was deleted.

0 comments on commit f4cd571

Please sign in to comment.