Skip to content

Commit

Permalink
Fix README.md info regarding browser usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bmpvieira committed Aug 15, 2014
1 parent 2257cda commit 6b84b53
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,19 @@ $ npm install bionode-template
```
To use it as a command line tool, you can install it globally by adding ```-g``` .

Alternatively, just include `bionode-template.min.js` via a `<script/>` in your page.
Alternatively, just include `bionode-template.min.js` via a `<script/>` in your page or use [Browserify](http://browserify.org).

Usage
-----

If you are using ```bionode-template``` with Node.js, you can require the module:
You can require the module in Node.js or in a browser:

```js
var template = require('bionode-template')
template.greet('World').on('data', console.log)
//=> {"greeting":"Hello World"}
```

In-browser, bionode is available as a global variable.
```js
bionode.template.greet('World').on('data', console.log)
```

Please read the [documentation](http://rawgit.com/bionode/bionode-template/master/docs/bionode-template.html) for the methods exposed by bionode-template.

### Command line examples
Expand Down

0 comments on commit 6b84b53

Please sign in to comment.