As in topic. I cannot handle it :/
I've installed npm i faker
and also npm i @types/faker --save-dev
my IDE found fakerStatic.name.findName()
but browser not recognizes fakerStatic
.
import 'faker';
does not help.
FAQ - What happened to the original faker. js? This project was originally created and hosted at https://github.com/marak/Faker.js/ - however around 4th Jan, 2022 - the author decided to delete the repository (for unknown reasons).
Falso is a modern alternative to Faker. js. Fake data can be useful when building and testing applications. Falso can generate fake data in various areas, including address, commerce, company, date, finance, image, random, and more.
Faker is a popular library that generates fake (but reasonable) data that can be used for things such as: Unit Testing. Performance Testing. Building Demos. Working without a completed backend.
You have to import it like:
import * as faker from 'faker';
And use it like:
faker.name.findName()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With