@types/barcode
TypeScript icon, indicating that this package has built-in type declarations

0.0.33 • Public • Published

Installation

npm install --save @types/barcode

Summary

This package contains type definitions for barcode (https://github.com/samt/barcode).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/barcode.

index.d.ts

/// <reference types="node" />

interface BarcodeOptions {
    data: string | number;
    width: number;
    height: number;
}

interface BarcodeResult {
    getStream(callback: (err: NodeJS.ErrnoException, stream: NodeJS.ReadableStream) => void): void;
    saveImage(outputfilePath: string, callback: (err: NodeJS.ErrnoException) => void): void;
    getBase64(callback: (err: NodeJS.ErrnoException, base64String: string) => void): void;
}

declare function barcode(type: string, options: BarcodeOptions): BarcodeResult;

export = barcode;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Pascal Vomhoff.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/barcode

Weekly Downloads

140

Version

0.0.33

License

MIT

Unpacked Size

3.68 kB

Total Files

5

Last publish

Collaborators

  • types