English
English is one of the many supported locales in Faker. It uses the language code en and is available as fakerEN.
Language data
| Key | Value |
|---|---|
| Name | English |
| Local Name | English |
| Language | en |
| Script | Latn |
| Direction | ltr |
Usage
A few commonly localized methods are shown below. Reload this page to see more random examples. Not all methods are localized in all locales.
ts
import { fakerEN } from '@faker-js/faker';
// const { fakerEN } = require('@faker-js/faker'); // CJS
// Commonly localized methods:
fakerEN.person.fullName();
fakerEN.location.streetAddress();
fakerEN.location.city();
fakerEN.location.state();
fakerEN.location.zipCode();
fakerEN.phone.number();
fakerEN.commerce.productName();
fakerEN.internet.email();
fakerEN.internet.url();
fakerEN.date.month();
fakerEN.date.weekday();
fakerEN.word.noun();
fakerEN.word.verb();
fakerEN.company.name();
// Non-localized methods work as normal:
fakerEN.number.int();