Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Isbn

Index

Constructors

constructor

  • new Isbn(rawIsbn: string): Isbn

Properties

EAN

EAN: string

group

group: string

isIsbn10

isIsbn10: boolean

isIsbn13

isIsbn13: boolean

publisher

publisher: string

title

title: string

Methods

toIsbn10

  • toIsbn10(): string

toIsbn13

  • toIsbn13(): string

validate

  • validate(): boolean
  • Check if isbn checkDigit is valid.

    Returns boolean

Static parse

  • parse(isbn: string): Isbn
  • Parse number into instance of Isbn class.

    Parameters

    • isbn: string

    Returns Isbn

Static toIsbn10

  • toIsbn10(isbn: string): string
  • Convert ISBN to ISBN10

    Parameters

    • isbn: string

    Returns string

Static toIsbn13

  • toIsbn13(isbn: string): string
  • Convert ISBN to ISBN13

    Parameters

    • isbn: string

    Returns string

Static validate

  • validate(rawIsbn: string): boolean
  • Check if string is a valid ISBN.

    Parameters

    • rawIsbn: string

    Returns boolean

Legend

  • Constructor
  • Property
  • Method
  • Static method

Generated using TypeDoc