faker_dart 0.2.2 copy "faker_dart: ^0.2.2" to clipboard
faker_dart: ^0.2.2 copied to clipboard

generate massive amounts of fake data in Dart & Flutter! A dart port of the famous faker.js

example/lib/example.dart

// ignore_for_file: avoid_print
import 'package:faker_dart/faker_dart.dart';

void main(List<String> arguments) {
  final faker = Faker.instance;

  print(faker.datatype.number());
  print(faker.name.fullName());
  print(faker.address.zipCode());
  print(faker.animal.animal());
  print(faker.commerce.price());
  print(faker.company.companyName());
  print(faker.database.column());
  print(faker.music.genre());
  print(faker.hacker.noun());
  print(faker.git.commitMessage());
  print(faker.date.month());
  print(faker.internet.url());
  print(faker.internet.domainName());
  print(faker.internet.domainSuffix());
  print(faker.internet.httpMethod());
  print(faker.internet.ip());

  /// combine all previous using the fake method
  print(
    faker.fake(
      '{{name.firstName}}, {{datatype.boolean}}, and also: {{commerce.price}}',
    ),
  );
}
92
likes
150
points
5.45k
downloads

Publisher

verified publishercasvanluijtelaar.com

Weekly Downloads

generate massive amounts of fake data in Dart & Flutter! A dart port of the famous faker.js

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection

More

Packages that depend on faker_dart