{"id":23468186,"url":"https://github.com/dinkopehar/mock_data","last_synced_at":"2025-04-14T13:21:06.720Z","repository":{"id":50098516,"uuid":"162052928","full_name":"dinkopehar/mock_data","owner":"dinkopehar","description":"Generate random data(string, integer, IPs etc...) using Dart.","archived":false,"fork":false,"pushed_at":"2024-03-18T10:57:36.000Z","size":98,"stargazers_count":14,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T15:54:00.982Z","etag":null,"topics":["dart","fake-data","mock","mock-data","random"],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/mock_data","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dinkopehar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-17T00:11:22.000Z","updated_at":"2024-12-23T13:23:12.000Z","dependencies_parsed_at":"2024-12-20T01:45:41.289Z","dependency_job_id":null,"html_url":"https://github.com/dinkopehar/mock_data","commit_stats":null,"previous_names":["dinkopehar/mock_data","dinko-pehar/mock_data"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinkopehar%2Fmock_data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinkopehar%2Fmock_data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinkopehar%2Fmock_data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinkopehar%2Fmock_data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinkopehar","download_url":"https://codeload.github.com/dinkopehar/mock_data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886334,"owners_count":21177645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","fake-data","mock","mock-data","random"],"created_at":"2024-12-24T13:19:46.092Z","updated_at":"2025-04-14T13:21:06.690Z","avatar_url":"https://github.com/dinkopehar.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"300\" src=\"https://github.com/dinko-pehar/mock_data/blob/master/assets/mock_data_logo.png\" alt=\"Mock Data Logo\" /\u003e\u003cbr\u003e\n  \u003ca href=\"https://github.com/dinko-pehar/mock_data/actions\"\u003e\u003cimg src=\"https://github.com/dinko-pehar/mock_data/workflows/Dart%20CI/badge.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE.txt\"\u003e\u003cimg src=\"https://img.shields.io/github/license/dinkopehar/mock_data.svg\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pub.dev/packages/mock_data\"\u003e\u003cimg src=\"https://img.shields.io/pub/v/mock_data\" alt=\"Version\"\u003e\u003c/a\u003e\u003cbr\u003e\n  Generate random data using \u003cimg src=\"https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/dart/dart.png\" alt=\"Dart\" width=\"16\" height=\"16\"\u003e\n\u003c/p\u003e\n\n## Features\n\nAPI provides generation of:\n\n- *Integers* in any range of numbers\n- *Strings* with various characters and length\n- *Colors* represented with needed color space\n- *Date*s between different moments in time\n- *Name*s such as John or Mary\n- *UUIDv4* and *Timestamp-first UUIDs*\n- *URL*s with many fragments\n- *IPv4* and *IPv6*\n- *Locations* as either random points or in specified radius\n\n## Usage\n\nA simple usage example:\n\n```dart\nimport 'package:mock_data/mock_data.dart';\n\nmain() {\n\n  mockName();           // Generate male or female first name. \n  mockName('male');     // Generate male first name. \n  mockName('female');   // Generate female first name. \n\n  mockInteger(1, 6);    // Generate integer in range from 1 do 6.\n\n  mockString(16);       // Generate string of length 16.\n  \n  mockIPv4();           // Generate IPv4 represented with \n                        // format(default is '*.*.*.*') as String. \n  \n  mockIPv6();           // Generate IPv6, same usage as with IPv4.\n\n  mockColor('hex');     // Generate color represented in hex format.\n  mockColor('rgb');     // Generate color represented in RGB format.\n  \n  mockUUID();           // Generate UUIDv4\n  \n  mockLocation();       // Generate random location.\n  mockLocation(53.55, 108.14, 1000); // Generate random location in 1000 m radius from the specified coordinates.\n  \n}\n```\n\nThese are some basic examples. There are many more methods and they all support tweeking of parameters to suit you in generating random data. By reading [examples][] you can learn more about functionality and usage of `mock_data`\n\n### Contributors\n- [Dinko Pehar](https://github.com/dinko-pehar)\n- [Nagasai Bodepudi](https://github.com/nagasaiBodepudi)\n- [Volodymyr Buberenko](https://github.com/vbuberen)\n- [Ivan Murashov](https://github.com/kifio)\n\n### License\n[MIT][]\n\n[MIT]: https://github.com/dinkopehar/mock_data/blob/master/LICENSE.txt\n[examples]: https://pub.dev/packages/mock_data#-example-tab-\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinkopehar%2Fmock_data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinkopehar%2Fmock_data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinkopehar%2Fmock_data/lists"}