Documentation

BarcodeExtension extends Extension

An extension is the only way to add new functionality to Faker.

Tags
experimental

This interface is experimental and does not fall under our BC promise

Table of Contents

ean13()  : string
Get a random EAN13 barcode.
ean8()  : string
Get a random EAN8 barcode.
isbn10()  : string
Get a random ISBN-10 code
isbn13()  : string
Get a random ISBN-13 code

Methods

ean13()

Get a random EAN13 barcode.

public ean13() : string
Tags
example

'4006381333931'

Return values
string

ean8()

Get a random EAN8 barcode.

public ean8() : string
Tags
example

'73513537'

Return values
string

Search results