UNPKG

ean-generator

Version:

A randomly generated EAN-13 code For Amazon

19 lines (18 loc) 534 B
interface CreateProps { countryCode?: string | number; vendorEan?: string | number; size?: number; } export default class EanGenerator { private countryCodeArr; constructor(countryCodeArr: string[]); create(prop?: CreateProps): string; createMultiple(prop?: CreateProps): string[]; private _create; isValid(num: string): boolean; setCountryCode(countryCodeArr: string[]): void; private computedEanLastNum; private pickCountryCode; private fillNumber; } export {};