Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vernondegoede/659e16abcea7912c1999de79f86c9f7e to your computer and use it in GitHub Desktop.
Save vernondegoede/659e16abcea7912c1999de79f86c9f7e to your computer and use it in GitHub Desktop.
Generate dummy data for customers
[
'{{repeat(50)}}',
{
id: 'cus_{{objectId()}}',
name: '{{firstName()}} {{surname()}}',
company: '{{company()}}',
email: '{{email()}}',
picture: {
large: 'https://randomuser.me/api/portraits/{{gender()}}/{{index(1)}}.jpg',
medium: 'https://randomuser.me/api/portraits/med/{{gender()}}/{{index(1)}}.jpg',
thumbnail: 'https://randomuser.me/api/portraits/thumb/{{gender()}}/{{index(1)}}.jpg',
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment