Minimal fake data generator by field (ES, EN, PT, FR, DE, RU, JA, ZH, TR)
npm install faker-i18nโจ faker-i18n is a lightweight (~14kB) library for generating fake data in a simple, fast, and dependency-free way.
Perfect for tests, seeders, mocking, and prototyping.
Currently supported locales:
- EN โ English (Default)
- ES โ Spanish
- PT โ Portuguese
- FR โ French
- DE โ German
- RU โ Russian
- JA โ Japanese
- ZH โ Chinese
- TR โ Turkish
``bash`
npm install faker-i18n
`bash
import { faker } from "faker-i18n";
const fake = faker("EN");
console.log(fake.firstName()); // Mike
console.log(fake.lastName()); // Taylor
console.log(fake.company()); // Soft Inc
console.log(fake.jobTitle()); // Designer
`
`bash`
fake.firstName(); // Mike
fake.lastName(); // Taylor
fake.company(); // Soft Inc
fake.jobTitle(); // Designer
bash
fake.email(); // vwvsqu@gmail.com
fake.username(); // user_irp593
fake.password(); // wriocxwhpxeb
fake.domain(); // gmail.com
fake.avatarUrl(); // https://i.pravatar.cc/131
fake.url(); // https://site966.com
fake.ip(); // 9.92.10.212
fake.mac(); // zn:pl:mt
`$3
`bash
fake.city(); // Texas
fake.zipCode(); // 88295
fake.phone(); // +3 63080859
`$3
`bash
fake.uuid(); // fe4e9431-4fe1-47d1-a16c-8b58ce10bf4e
fake.boolean(); // true
fake.currency(); // USD
fake.numberBetween(1, 4); // 3
fake.color(); // #823109
fake.lorem(); // Lorem ipsum dolor sit amet``- ๐ชถ Lightweight and fast
- ๐ฆ No unnecessary dependencies
- ๐ Multi-language support
- ๐งช Ideal for tests and mocks
- ๐ก Simple and predictable API
- New locales
- New generators
- Performance improvements
- Bug fixes
MIT ยฉ 2025