Vehicle

Module to generate vehicle related entries.

Bicycle

Returns a type of bicycle.

Returns: string

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

Color

Returns a vehicle color.

Returns: string

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

Fuel

Returns a fuel type.

Returns: string

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

Manufacturer

Returns a manufacturer name.

Returns: string

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

Model

Returns a vehicle model.

Returns: string

faker.vehicle.model(): string
faker.vehicle.model() // => "Roadster"
faker.vehicle.model() // 'Explorer'

Type

Returns a vehicle type.

Returns: string

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

Vehicle

Returns a random vehicle.

Returns: string

faker.vehicle.vehicle(): string
faker.vehicle.vehicle() // => "Lamborghini Camry"
faker.vehicle.vehicle() // 'BMW Explorer'

Vin

Returns a vehicle identification number (VIN).

Returns: string

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

Vrm

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

Returns: string

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