Skip to content

Commit

Permalink
readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Jan 30, 2016
1 parent 86d97d4 commit eea70e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ validate(data).then(successFunc).catch(errorFunc);
```

- node.js: `npm install nodent`
- browser: `<script src="node_modules/ajv/dist/nodent.min.js">
- browser: `<script src="node_modules/ajv/dist/nodent.min.js"></script>`


#### Using regenerator
Expand All @@ -366,7 +366,7 @@ validate(data).then(successFunc).catch(errorFunc);
```

- node.js: `npm install regenerator`
- browser: `<script src="node_modules/ajv/dist/regenerator.min.js">
- browser: `<script src="node_modules/ajv/dist/regenerator.min.js"></script>`


#### Using other transpilers
Expand All @@ -391,12 +391,12 @@ See [Options](#options).

#### Comparison of async modes

|mode|source code|returns|transpile<br>performance*|run-time<br>performance*|bundle size|
|mode|source<br>code|returns|transpile<br>performance*|run-time<br>performance*|bundle size|
|---|:-:|:-:|:-:|:-:|:-:|
|generators (native)|generator<br>function|generator object,<br>promise if co.wrap'ped|-|1.0|-|
|generators<br>(native)|generator<br>function|generator<br>object|-|1.0|-|
|es7.nodent|es7 async<br>function|promise|1.69|1.1|183Kb|
|es7.regenerator|es7 async<br>function|promise|1.0|2.7|322Kb|
|regenerator|generator<br>function|generator object|1.0|3.2|322Kb|
|regenerator|generator<br>function|generator<br>object|1.0|3.2|322Kb|

* Relative performance, smaller is better

Expand Down

0 comments on commit eea70e1

Please sign in to comment.