Hacker News new | past | comments | ask | show | jobs | submit login
Faker.js - generate massive amounts of fake data in Node.js and the browser (github.com/marak)
37 points by marak on May 16, 2010 | hide | past | favorite | 9 comments




Seems a little weird as most addresses were in the UK, but had zip codes, large house numbers and non UK phone numbers.

Needs a bit more filtering based on locale.


I'd like to see better test data for sure. It's pretty easy to add more custom definitions in the definitons.js file.


also, it should be noted that online demo creates a contact card that uses every single API call. normally you wouldn't generate a UK address + a US zipcode in one contact



Do you guys know a java library that would do the same thing ?


online demo in case you missed it on the github readme

http://maraksquires.com/Faker.js/


I tried to generate a "massive" amount of data, but I hit the script CPU usage warning pretty quickly :). Have you tried using Web Workers or perhaps timer-chunking your data generation loop?


If you are generating large sets of data you are better off calling the script from node. Also, if you are using the browser demo it's gonna try to append all that info to the DOM.....

I put this together in less then two days, there is a vast amount of room for improvement in this library. I'd be happy to see a web workers fork and streaming async version in node.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: