JSPM

@types/pdf-parse

1.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 336889
  • Score
    100M100P100Q171494F
  • License MIT

TypeScript definitions for pdf-parse

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/pdf-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/pdf-parse

    Summary

    This package contains type definitions for pdf-parse (https://gitlab.com/autokent/pdf-parse).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdf-parse.

    index.d.ts

    // Type definitions for pdf-parse 1.1
    // Project: https://gitlab.com/autokent/pdf-parse
    // Definitions by: Philipp Katz <https://github.com/qqilihq>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    export = PdfParse;
    
    declare function PdfParse(dataBuffer: Buffer, options?: PdfParse.Options): Promise<PdfParse.Result>;
    
    declare namespace PdfParse {
        type Version = "default" | "v1.9.426" | "v1.10.100" | "v1.10.88" | "v2.0.550";
        interface Result {
            numpages: number;
            numrender: number;
            info: any;
            metadata: any;
            version: Version;
            text: string;
        }
        interface Options {
            pagerender?: ((pageData: any) => string) | undefined;
            max?: number | undefined;
            version?: Version | undefined;
        }
    }
    

    Additional Details

    • Last updated: Sun, 24 Sep 2023 06:37:28 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Philipp Katz.