Skip to content

Commit

Permalink
chore(index): rename const to reflect functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Nov 10, 2020
1 parent 12a5c04 commit d7633d1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
const { execFile } = require('child_process');
const util = require('util');

const execFileSync = util.promisify(execFile);
const execFileAsync = util.promisify(execFile);
const platform = os.platform();

/**
Expand Down Expand Up @@ -110,7 +110,7 @@ class Poppler {
args.push(fileToAttach);
args.push(outputFile);

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdfattach'),
args
);
Expand Down Expand Up @@ -164,7 +164,7 @@ class Poppler {
const args = await parseOptions(acceptedOptions, options);
args.push(file);

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdfdetach'),
args
);
Expand Down Expand Up @@ -203,7 +203,7 @@ class Poppler {
const args = await parseOptions(acceptedOptions, options);
args.push(file);

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdffonts'),
args
);
Expand Down Expand Up @@ -262,7 +262,7 @@ class Poppler {
args.push(outputPrefix);
}

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdfimages'),
args
);
Expand Down Expand Up @@ -327,7 +327,7 @@ class Poppler {
const args = await parseOptions(acceptedOptions, options);
args.push(file);

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdfinfo'),
args
);
Expand Down Expand Up @@ -367,7 +367,7 @@ class Poppler {
args.push(file);
args.push(outputPattern);

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdfseparate'),
args
);
Expand Down Expand Up @@ -527,7 +527,7 @@ class Poppler {
} else {
args.push('-');
}
const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdftocairo'),
args
);
Expand Down Expand Up @@ -604,7 +604,7 @@ class Poppler {
const args = await parseOptions(acceptedOptions, options);
args.push(file);

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdftohtml'),
args
);
Expand Down Expand Up @@ -718,7 +718,7 @@ class Poppler {
args.push(file);
args.push(outputPath);

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdftoppm'),
args
);
Expand Down Expand Up @@ -878,7 +878,7 @@ class Poppler {
args.push('-');
}

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdftops'),
args
);
Expand Down Expand Up @@ -971,7 +971,7 @@ class Poppler {
args.push('-');
}

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdftotext'),
args
);
Expand Down Expand Up @@ -1005,7 +1005,7 @@ class Poppler {
});
args.push(outputFile);

const { stdout } = await execFileSync(
const { stdout } = await execFileAsync(
path.join(this.popplerPath, 'pdfunite'),
args
);
Expand Down

0 comments on commit d7633d1

Please sign in to comment.