February 19, 2019 FakeD | ||||
---|---|---|---|---|
| ||||
FakeD [2,3] is a fake data generator with support for localisation. It is based on faker.js [1]. See [4] for a list of available methods. void main() { import std.stdio; import faked; auto f = new Faker(/*random seed */ 1337); writeln(f.loremText()); writeln(f.addressCity()); writeln(f.nameName()); // localized to german f = new Faker_de(/*random seed */ 1338); writeln(f.loremText()); writeln(f.addressCity()); writeln(f.nameName()); } [1] https://github.com/marak/Faker.js/ [2] https://code.dlang.org/packages/faked [3] https://github.com/kaleidicassociates/faked [4] https://kaleidicassociates.github.io/faked/ |
February 19, 2019 Re: FakeD | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Schadek | On Tuesday, 19 February 2019 at 10:38:22 UTC, Robert Schadek wrote: > FakeD [2,3] is a fake data generator with support for localisation. > It is based on faker.js [1]. > See [4] for a list of available methods. > > void main() { > import std.stdio; > import faked; > > auto f = new Faker(/*random seed */ 1337); > > writeln(f.loremText()); > writeln(f.addressCity()); > writeln(f.nameName()); > > // localized to german > f = new Faker_de(/*random seed */ 1338); > > writeln(f.loremText()); > writeln(f.addressCity()); > writeln(f.nameName()); > } > > [1] https://github.com/marak/Faker.js/ > [2] https://code.dlang.org/packages/faked > [3] https://github.com/kaleidicassociates/faked > [4] https://kaleidicassociates.github.io/faked/ > Faker_en_au_ocker Strewth! |
Copyright © 1999-2021 by the D Language Foundation