Skip to content
On this page

Vehicle

Module to generate vehicle related entries.

bicycle

Returns a type of bicycle.

Returns: string

ts
faker.vehicle.bicycle(): string
faker.vehicle.bicycle() // => "Hybrid Bicycle"
faker.vehicle.bicycle() // 'Adventure Road Bicycle'

color

Returns a vehicle color.

Returns: string

ts
faker.vehicle.color(): string
faker.vehicle.color() // => "salmon"
faker.vehicle.color() // 'red'

fuel

Returns a fuel type.

Returns: string

ts
faker.vehicle.fuel(): string
faker.vehicle.fuel() // => "Gasoline"
faker.vehicle.fuel() // 'Electric'

manufacturer

Returns a manufacturer name.

Returns: string

ts
faker.vehicle.manufacturer(): string
faker.vehicle.manufacturer() // => "Lamborghini"
faker.vehicle.manufacturer() // 'Ford'

model

Returns a vehicle model.

Returns: string

ts
faker.vehicle.model(): string
faker.vehicle.model() // => "Model S"
faker.vehicle.model() // 'Explorer'

type

Returns a vehicle type.

Returns: string

ts
faker.vehicle.type(): string
faker.vehicle.type() // => "Minivan"
faker.vehicle.type() // 'Coupe'

vehicle

Returns a random vehicle.

Returns: string

ts
faker.vehicle.vehicle(): string
faker.vehicle.vehicle() // => "Lamborghini Model Y"
faker.vehicle.vehicle() // 'BMW Explorer'

vin

Returns a vehicle identification number (VIN).

Returns: string

ts
faker.vehicle.vin(): string
faker.vehicle.vin() // => "JKPUKVHUDLRC49382"
faker.vehicle.vin() // 'YV1MH682762184654'

vrm

Returns a vehicle registration number (Vehicle Registration Mark - VRM)

Returns: string

ts
faker.vehicle.vrm(): string
faker.vehicle.vrm() // => "OP78PWO"
faker.vehicle.vrm() // 'MF56UPA'

Released under the MIT License.