faker 2.2.0 copy "faker: ^2.2.0" to clipboard
faker: ^2.2.0 copied to clipboard

A library for generating fake data. faker is heavily inspired by the Python package faker and, the Ruby package ffaker.

Changelog #

2.2.0 #

Features #

  • Add rgbColor method to colors faker. PR #72
faker.colors.rgbColor();
faker.colors.rgbColor(prefix: '0x');
faker.colors.rgbColor(casing: Casing.upper);
faker.colors.rgbColor(format: Format.css);
faker.colors.rgbColor(includeAlpha: true);
  • Add Japanese phone number support. PR #73
  • Move image from Unsplash to Lorem Picsum. PR #74

Fixes #

  • Fix safe email method by removing apostrophe. PR #70

Maintenance #

  • Update lints package. PR #71

2.1.0 #

Features #

faker.date.justTime();
faker.geo.latitude();
faker.geo.longitude();
faker.animal.name();
  • Add german phone numbers. PR #60
faker.phoneNumber.de();
faker.date.dateTimeBetween(DateTime(2017, 9, 7), DateTime(2020, 9, 7));
  • Add colors faker. As well as vehicle.colorYearMakeModel. PR #50
// Generates a color name.
faker.colors.color();

// Generates a color name from a smaller list of colors.
faker.colors.commonColor();

/// Generates a random vehicle's year, make, and model with a prefixed color.
faker.vehicle.colorYearMakeModel();

Fixes #

Maintenance #

  • Add lints & Upgrade min dart sdk and dependencies. PR #64

2.0.0 #

  • RC to stable
  • Add vehicles. PR #44
  • fix: Added a generic type parameter to faker.randomGenerator.amount(). Issue #45, PR #46

2.0.0-rc.2 #

2.0.0-rc.1 #

1.3.0 #

faker.internet.userAgent();
faker.internet.userAgent(osName:'iOS');
faker.image.image(width: 1200, height: 900, keywords: 'nature,people');

1.2.1 #

1.2.0 #

1.1.0 #

  • Added lorem sentences and words
  • Added continents
  • Added generics to randomGenerator.element()

1.0.0 #

  • Make faker compatible with Dart 2.0.

0.0.5 #

  • fix: Remove illegal chars from generated domain words

0.0.4 #

  • Added food generator, includes restaurants, dishes and cuisines

0.0.3 #

  • fix: Type faker constant to Faker

0.0.2 #

  • Added support for guids
  • Added fromPatternToHex method that generates a random set of numbers from a given pattern and return it as hex

0.0.1 #

  • Initial release
850
likes
160
points
1.16M
downloads

Publisher

unverified uploader

Weekly Downloads

A library for generating fake data. faker is heavily inspired by the Python package faker and, the Ruby package ffaker.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

crypto

More

Packages that depend on faker