Chance.js vs MockNeat
Chance.js
chancejs.comMockNeat
mockneat.comSide by side
| Figure | Chance.js | MockNeat |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | — |
| API | Yes | Yes |
| Plans published | 1 | 0 |
| Spec score · Test Data Generation Tools | 8.3 (#2) | 7.0 (#24) |
| Generator categories | The documented generators cover basics, text, people, mobile identifiers, web data, locations, time, finance, helpers, and miscellaneous values. | Documented generator categories include financial, geographic, internet, Java type, Java object, number, and personal information data. |
| Integrations | The documentation includes installation and usage instructions for Bower and RequireJS, as well as npm for Node.js. | The maker provides Maven and Gradle dependency instructions for installing the library. |
| Intended users | The site gives generating random names and addresses for automated tests as an intended practical use. | The maker’s pages describe MockNeat as a library for developers generating arbitrary data programmatically. |
| Maker | The site credits Victor Quinn as the writer of Chance. | The site identifies Andrei N. Ciobanu as the maker and lists Bucharest, Romania. |
| Purpose | Chance generates pseudo-random strings, numbers, and other values for automated tests and other uses that need random data. | Its fluent API lets developers create JSON, XML, CSV, and SQL data programmatically. |
Plans
In their own words
Chance.js
Chance.js is a free, MIT-licensed JavaScript library for generating pseudorandom data used in automated tests and other applications needing sample values. Generators cover basic values, text, people, mobile identifiers, web data, locations, dates, finance, helpers, and miscellaneous categories. Developers can install it with npm for Node.js, load it in a browser, or use the separate chance-cli package from the command line. Browser users may create a global instance or instantiate several instances. Supplying a seed makes output repeatable; instances given the same seed can produce the same sequence. Integer generation accepts inclusive minimum and maximum bounds, and the unique() helper builds arrays without repeated generated items. The documented name generator supports English and Italian nationality options. The site lists chance.js at 95KB uncompressed and chance.min.js at 55KB, or 17KB gzipped. Chance is not intended for cryptographic applications requiring true randomness. The site credits Victor Quinn as its writer.