Socket
Socket
Sign inDemoInstall

pdfkit-table

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfkit-table - npm Package Compare versions

Comparing version 0.1.97 to 0.1.98

22

index.d.ts

@@ -52,15 +52,23 @@ declare module 'pdfkit-table'

interface DividerOptions {
disabled: boolean;
width: number;
opacity: number;
disabled?: boolean;
width?: number;
opacity?: number;
}
interface Divider {
header: DividerOptions;
horizontal: DividerOptions;
header?: DividerOptions;
horizontal?: DividerOptions;
}
interface Title
{
label: string;
fontSize?: number;
fontFamily?: string;
color?: string;
}
interface Options {
title?: string;
subtitle?: string;
title?: string | Title ;
subtitle?: string | Title;
width?: number;

@@ -67,0 +75,0 @@ x?: number; //default doc.x

{
"name": "pdfkit-table",
"version": "0.1.97",
"version": "0.1.98",
"description": "PdfKit Table. Helps to draw informations in simple tables using pdfkit. #server-side. Generate pdf tables with javascript (PDFKIT plugin) ",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -56,3 +56,3 @@ <p align="center">

// the magic (async/await)
await doc.table(table, { /* options */ }, () => { /* callback */ } );
await doc.table(table, { /* options */ });
// -- or --

@@ -244,4 +244,4 @@ // doc.table(table).then(() => { doc.end() }).catch((err) => { })

- headerAlign <code>String</code>
- columnColor or backgroundColor <code>String</code>
- columnOpacity or backgroundOpacity: <code>Number</code>
- columnColor or ~~backgroundColor~~: <code>String</code>
- columnOpacity or ~~backgroundOpacity~~: <code>Number</code>
- renderer <code>Function</code> function( value, indexColumn, indexRow, row, rectRow, rectCell ) { return value }

@@ -510,3 +510,3 @@ - datas <code>Array.&lt;object&gt;</code>

```js
doc.table(table, options, callback);
~~doc.table(table, options, callback)~~;
```

@@ -513,0 +513,0 @@

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