Hacker News new | ask | show | jobs
Show HN: Mockingbird – VSCode Extension for Fake Data (marketplace.visualstudio.com)
2 points by baystep 1033 days ago
Hello all, I'd like to present my latest project Mockingbird. It is a VSCode extension for generating fake/dummy data inside your editor. I've put a lot of power in this compared to some other solutions.

Not only can you generate the usual gambit of Lorem Ipsum, names, places, numbers, IDs, colors, etc.. You can also use a powerful Handlebars-based templating engine to build out structured objects like JSON objects. I've even included a reverse-regular-expression library to generate data that matches a given RegEx pattern. If you find yourself repeating the same patterns you can save them as a preset to use later.

Please give it a try, if there's any suggestions or bugs found, the github repository is at:

https://github.com/chris-pikul/mockingbird

1 comments

I'm not sure why I would want this as a VSCode extension instead of a language library (?)
I chose to make this as an extension so I could quickly inject data for unit tests and UI previews. I've thought to pulling out the code and making it a library as well, but Faker and chance already exist in the JS ecosystem.