MockingbirdHave you ever needed randomly generated data? Maybe you are building mock data for API testing, or you need to check that your UI will look correct when real data comes in. Perhaps you just want to build unit tests that have reasonable test data. Either way, that's what Mockingbird is for. Mockingbird generates random data of all sorts. And not just numbers and random characters: you can also generate Lorem Ipsum text, reverse regular expression (data that passes a given RegEx), names, identifiers, JSON pattern templates, and more! FeaturesThere are plenty of features to list here, so they are broken up into categories just like the context menu is. If there is something missing, check the Contributing section below. TemplatesTo facilitate making structured data, Mockingbird provides a templating engine to help build these. You can generate data in any format you want, just as: json, yaml, xml, csv, text, etc.. This is possible because the templating engine does not care about the text format, and only cares about it's template tags. These tags follow a familiar Handlebars style of wrapping the template tag in double-curly-braces See the documentation at Templates for more information. Regular ExpressionsProvided a Regular Expression, Mockingbird will generate random data that conforms to it. This is the most powerful, and easiest way to get data if another generator doesn't work for you. You can provide a full expression with flags, or just the pattern portion. Example: Given the pattern Example Output0M1cMByJsC8j@aSqqoNXbognNtR2nwAjVe.NET Wco0nh2A44@i5s9.com Vtp@U3GTp.neT For extra flexibility there are commands to create new presets that are saved to your settings so you can recall them later. Date/Time
Number
Color
Text
Person
Locations
Miscellaneous
ContributingIf you have a feature suggestion, or something you want to implement yourself, I'm open to ideas and PRs. The repository is on GitHub. If it's just a request, you can use the Issues page. AcknowledgmentsThanks to Jorge Rebocho for the inspiration with their vscode-random extension. Uses the following third-party packages: LicenseLicensed under Apache 2.0, see the license file at LICENSE for the full text. Copyright 2023 Chris Pikul. |