Skip to content
A library for Dart that generates fake data.
Dart Other
  1. Dart 99.6%
  2. Other 0.4%
Branch: master
Clone or download
drager Merge pull request #12 from a-p-o/patch-1
Fix typo in lorem.sentences
Latest commit 94b3485 Sep 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
lib
test Merge pull request #9 from georgepapas/master May 5, 2019
tool
.envrc chore: Add shell.nix May 25, 2019
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md Merge pull request #9 from georgepapas/master May 5, 2019
pubspec.yaml chore: Release 1.1.0 May 25, 2019
shell.nix chore: Add shell.nix May 25, 2019

README.md

faker

Build Status Coverage Status Faker on pub

A library for Dart that generates fake data.

faker is heavily inspired by the Python package faker, and the Ruby package ffaker.

Usage

A simple usage example:

import 'package:faker/faker.dart';

main() {
  var faker = new Faker();

  faker.internet.email();
  // francisco_lebsack@buckridge.com

  faker.internet.ipv6Address();
  // 2450:a5bf:7855:8ce9:3693:58db:50bf:a105

  faker.internet.userName();
  // fiona-ward

  faker.person.name();
  // Fiona Ward

  faker.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.

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.

You can’t perform that action at this time.