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

pdf2pic

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf2pic - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

.husky/pre-commit

6

dist/graphics.d.ts
/// <reference types="node" />
import gm from "gm";
import fs from "fs";
import gm from 'gm';
import fs from 'fs';
import { BufferResponse, ToBase64Response, WriteImageResponse } from './types/convertResponse';
import { Options } from "./types/options";
import { Options } from './types/options';
export declare class Graphics {

@@ -7,0 +7,0 @@ private quality;

/// <reference types="node" />
import { Convert } from "./types/convert";
import { Convert } from './types/convert';
export declare function fromPath(filePath: string, options?: import("./types/options").Options): Convert;
export declare function fromBuffer(buffer: Buffer, options?: import("./types/options").Options): Convert;
export declare function fromBase64(b64string: string, options?: import("./types/options").Options): Convert;
/// <reference types="node" />
import type { Convert } from "./types/convert";
import type { Options } from "./types/options";
import type { Convert } from './types/convert';
import type { Options } from './types/options';
export declare function pdf2picCore(source: string, data: string | Buffer, options?: Options): Convert;
/// <reference types="node" />
import { ReadStream } from "fs";
import { ReadStream } from 'fs';
export declare function base64ToStream(base64: string): ReadStream;
/// <reference types="node" />
/// <reference types="node" />
import { ReadStream } from "fs";
import { ReadStream } from 'fs';
export declare function bufferToStream(buffer: Buffer): ReadStream;
/// <reference types="node" />
/// <reference types="node" />
import { ReadStream } from "fs";
import { ReadStream } from 'fs';
export declare function convertToStream(source: string, file: string | Buffer): ReadStream;

@@ -1,2 +0,2 @@

import { Options } from "../types/options";
import { Options } from '../types/options';
export declare const defaultOptions: Options;
/// <reference types="node" />
import { ReadStream } from "fs";
import { Graphics } from "../graphics";
import { ReadStream } from 'fs';
import { Graphics } from '../graphics';
export declare function getPages(gm: Graphics, pdf_path: ReadStream): Promise<number[]>;
{
"name": "pdf2pic",
"version": "3.1.0",
"version": "3.1.1",
"description": "A utility for converting pdf to image formats. Supports different outputs: directly to file, base64 or buffer.",

@@ -23,4 +23,7 @@ "main": "dist/index.js",

"eslint": "^8.46.0",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"prettier": "^3.1.1",
"rimraf": "^5.0.1",

@@ -41,3 +44,4 @@ "rollup": "^3.27.2",

"lint": "eslint --ext .ts .",
"build": "npm run test && npm run clean && npm run rollup"
"build": "npm run test && npm run clean && npm run rollup",
"prepare": "husky install"
},

@@ -77,3 +81,6 @@ "engines": {

},
"homepage": "https://github.com/yakovmeister/pdf2image#readme"
"homepage": "https://github.com/yakovmeister/pdf2image#readme",
"lint-staged": {
"*.{js,ts}": ["prettier --write", "eslint --fix"]
}
}
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