Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdf-parser-client-side

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf-parser-client-side - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

4

dist/index.d.ts

@@ -1,1 +0,3 @@

export declare function extractTextFromPDF(file: File, variant: string): Promise<string | void>;
type Variant = "clean" | "alphanumeric" | "alphanumericwithspace" | "alphanumericwithspaceandpunctuation" | "alphanumericwithspaceandpunctuationandnewline";
export default function extractTextFromPDF(file: File, variant: Variant): Promise<string | void>;
export {};

@@ -10,3 +10,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.extractTextFromPDF = void 0;
const { pdfjs } = require("react-pdf");

@@ -50,3 +49,3 @@ const pdfjsWorker = require("pdfjs-dist/build/pdf.worker.entry");

}
console.error("Error extracting text from PDF:");
console.error("Error extracting text from PDF");
// Clean up the blob URL

@@ -59,2 +58,2 @@ URL.revokeObjectURL(blobUrl);

}
exports.extractTextFromPDF = extractTextFromPDF;
exports.default = extractTextFromPDF;
{
"name": "pdf-parser-client-side",
"version": "1.0.8",
"version": "1.0.9",
"description": "A lightweight easy to use package to parse text from PDF files on client side without any server dependency.",

@@ -40,7 +40,3 @@ "main": "dist/index.js",

"react-pdf": "^7.5.0"
},
"devDependencies": {
"@types/node": "^20.14.2",
"typescript": "^5.4.5"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc