Skip to content

Instantly share code, notes, and snippets.

@mattt416
Forked from alexbevi/template.json
Created September 25, 2020 14:05
Show Gist options
  • Save mattt416/e3e737829afd6e8ec65084eac26ef877 to your computer and use it in GitHub Desktop.
Save mattt416/e3e737829afd6e8ec65084eac26ef877 to your computer and use it in GitHub Desktop.
Mgeneratejs template
{
"a": { "$integer": {"min": 1, "max": 100 } },
"b": { "$integer": {"min": 1, "max": 500 } },
"c": { "$integer": {"min": 1, "max": 1000 } },
"d": { "$integer": {"min": 1, "max": 5000 } },
"e": { "$integer": {"min": 1, "max": 10000 } },
"numbers": {
"integer": "$integer",
"float": "$floating"
},
"array": {
"$array": {
"of": {
"$country": {
"full": true
}
},
"number": 5
}
},
"geojson": {
"point": "$point",
"linestring": "$linestring",
"polygon": "$polygon"
},
"native types": {
"binary": "$binary",
"date": "$date",
"numberLong": "$numberLong",
"timestamp": "$timestamp",
"regex": "$regex"
},
"chance": {
"ip_address": "$ip",
"unix time": "$hammertime"
},
"personal": {
"birthday": {"$birthday": {"type": "child"}},
"phone": "$phone",
"full name": {"$name": {"gender": "female"}},
"first name": "$first",
"last name": "$last",
"email": "$email",
"ssn": "$ssn",
"company": "$company",
"bb pin": "$bb_pin",
"url": {"$url": {"path": "images"}},
"urlfile": {"$url": {"extensions": ["gif", "jpg"]}}
},
"text": {
"paragraph": {"$paragraph": {"sentences": 1}},
"sentence": {"$sentence": {"words": 5}}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment