Navigation Menu

Skip to content

Commit

Permalink
Added Getting Started section
Browse files Browse the repository at this point in the history
  • Loading branch information
twolfson committed Jan 31, 2013
1 parent 93088db commit 41a6db1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -6,6 +6,25 @@ Generate repeatable random data in JS
Inspired by [Faker.js](http://github.com/Marak/Faker.js)
Uses slightly modified [Alea PRNG](http://baagoe.org/en/wiki/Alea)

## Getting started

For the server, install Nonsense via [npm][npm].
```shell
npm install Nonsense
```

For the browser, download [Nonsense.js][nonsense.js], and include it as a script tag.

```html
<script src="Nonsense.js"></script>
<script>
var ns = new Nonsense();
ns.integer(); // Random integer between 0 and 2^32
</script>
```

[npm]: https://npmjs.org/
[nonsense.js]: https://raw.github.com/jocafa/Nonsense/master/Nonsense.js

## Usage

Expand Down

0 comments on commit 41a6db1

Please sign in to comment.