Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drager/faker
A library for Dart that generates fake data.
https://github.com/drager/faker
dart fake fake-data faker faker-library test-data
Last synced: 6 days ago
JSON representation
A library for Dart that generates fake data.
- Host: GitHub
- URL: https://github.com/drager/faker
- Owner: drager
- License: mit
- Created: 2015-05-27T19:02:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T20:38:28.000Z (4 months ago)
- Last Synced: 2024-12-21T00:05:36.293Z (13 days ago)
- Topics: dart, fake, fake-data, faker, faker-library, test-data
- Language: Dart
- Homepage:
- Size: 300 KB
- Stars: 232
- Watchers: 5
- Forks: 54
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# faker
[![Build Status](https://travis-ci.org/drager/faker.svg?branch=master)](https://travis-ci.org/drager/faker)
[![Coverage Status](https://coveralls.io/repos/drager/faker/badge.svg)](https://coveralls.io/r/drager/faker)
[![Faker on pub](https://img.shields.io/pub/v/faker.svg)](https://pub.dartlang.org/packages/faker)A library for Dart that generates fake data.
faker is heavily inspired by the Python package [faker](https://github.com/joke2k/faker),
and the Ruby package [ffaker](https://github.com/EmmanuelOga/ffaker).## Usage
A simple usage example:
```dart
import 'package:faker/faker.dart';main() {
var faker = new Faker();faker.internet.email();
// [email protected]faker.internet.ipv6Address();
// 2450:a5bf:7855:8ce9:3693:58db:50bf:a105faker.internet.userName();
// fiona-wardfaker.person.name();
// Fiona Wardfaker.person.prefix();
// Mrs.faker.person.suffix();
// Sr.
faker.lorem.sentence();
// Nec nam aliquam sem et
}
```## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/drager/faker/issues
## Copyright
Copyright (c) 2015 Jesper Håkansson. See LICENSE for details. Copyright (c) 2013 Emmanuel Oga.
Copyright (c) 2012 Daniele Faraglia. Copyright (c) 2007 Benjamin Curtis.