Skip to content

Commit 2f023e3

Browse files
🤖 dprint fmt
1 parent 5cbb884 commit 2f023e3

File tree

3 files changed

+45
-45
lines changed

3 files changed

+45
-45
lines changed

types/pdf2html/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"private": true,
3-
"name": "@types/pdf2html",
4-
"version": "3.1.9999",
5-
"projects": [
6-
"https://github.com/shebinleo/pdf2html#readme"
7-
],
8-
"dependencies": {
9-
"@types/node": "*"
10-
},
11-
"devDependencies": {
12-
"@types/pdf2html": "workspace:."
13-
},
14-
"owners": [
15-
{
16-
"name": "manuz cheruz",
17-
"githubUsername": "manuzcheruz"
18-
}
19-
]
2+
"private": true,
3+
"name": "@types/pdf2html",
4+
"version": "3.1.9999",
5+
"projects": [
6+
"https://github.com/shebinleo/pdf2html#readme"
7+
],
8+
"dependencies": {
9+
"@types/node": "*"
10+
},
11+
"devDependencies": {
12+
"@types/pdf2html": "workspace:."
13+
},
14+
"owners": [
15+
{
16+
"name": "manuz cheruz",
17+
"githubUsername": "manuzcheruz"
18+
}
19+
]
2020
}

types/pdf2html/pdf2html-tests.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import pdf2html = require('pdf2html');
2-
import { Readable } from 'stream';
1+
import pdf2html = require("pdf2html");
2+
import { Readable } from "stream";
33

44
// Test async conversion with callback
5-
pdf2html('test.pdf', (error, html) => {
5+
pdf2html("test.pdf", (error, html) => {
66
if (error) {
77
console.error(error);
88
return;
@@ -12,17 +12,17 @@ pdf2html('test.pdf', (error, html) => {
1212

1313
// Test async conversion with options
1414
const options = {
15-
binary: '/usr/local/bin/pdftohtml',
15+
binary: "/usr/local/bin/pdftohtml",
1616
first_page: 1,
1717
last_page: 10,
1818
complex: true,
1919
single_page: false,
2020
no_background: true,
2121
no_frames: true,
22-
zoom: 1.5
22+
zoom: 1.5,
2323
};
2424

25-
pdf2html('test.pdf', options, (error, html) => {
25+
pdf2html("test.pdf", options, (error, html) => {
2626
if (error) {
2727
console.error(error);
2828
return;
@@ -31,12 +31,12 @@ pdf2html('test.pdf', options, (error, html) => {
3131
});
3232

3333
// Test sync conversion
34-
const htmlSync = pdf2html.pdf2htmlSync('test.pdf');
34+
const htmlSync = pdf2html.pdf2htmlSync("test.pdf");
3535
console.log(htmlSync);
3636

3737
// Test with stream input
3838
const stream = new Readable();
39-
stream.push('PDF content');
39+
stream.push("PDF content");
4040
stream.push(null);
4141

4242
pdf2html(stream, (error, html) => {
@@ -50,6 +50,6 @@ pdf2html(stream, (error, html) => {
5050
// Test sync conversion with stream and options
5151
const htmlStreamSync = pdf2html.pdf2htmlSync(stream, {
5252
complex: true,
53-
zoom: 2.0
53+
zoom: 2.0,
5454
});
55-
console.log(htmlStreamSync);
55+
console.log(htmlStreamSync);

types/pdf2html/tsconfig.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"compilerOptions": {
3-
"module": "commonjs",
4-
"lib": [
5-
"es6"
6-
],
7-
"strictFunctionTypes": true,
8-
"noImplicitAny": true,
9-
"noImplicitThis": true,
10-
"strictNullChecks": true,
11-
"types": [],
12-
"noEmit": true,
13-
"forceConsistentCasingInFileNames": true
14-
},
15-
"files": [
16-
"index.d.ts",
17-
"pdf2html-tests.ts"
18-
]
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"lib": [
5+
"es6"
6+
],
7+
"strictFunctionTypes": true,
8+
"noImplicitAny": true,
9+
"noImplicitThis": true,
10+
"strictNullChecks": true,
11+
"types": [],
12+
"noEmit": true,
13+
"forceConsistentCasingInFileNames": true
14+
},
15+
"files": [
16+
"index.d.ts",
17+
"pdf2html-tests.ts"
18+
]
1919
}

0 commit comments

Comments
 (0)