Skip to content

Commit 97df178

Browse files
alias-rahilRahil Kabani
andauthored
fix: typo outputtype -> outputType (#65)
Co-authored-by: Rahil Kabani <[email protected]>
1 parent 2970f7d commit 97df178

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/handwritten.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "handwritten.js",
3-
"version": "18.11.1",
3+
"version": "18.11.2",
44
"description": "Convert typed text to realistic handwriting!",
55
"repository": {
66
"type": "git",

src/bin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if (program.images) {
2929
if (program.images !== "png" && program.images !== "jpeg") {
3030
error = true;
3131
} else {
32-
optionalargs.outputtype = `${program.images}/buf`;
32+
optionalargs.outputType = `${program.images}/buf`;
3333
}
3434
}
3535
if (program.ruled) {
@@ -49,7 +49,7 @@ async function main(file, optional, output) {
4949
handwritten(rawtext, optional),
5050
del(output, { force: true }),
5151
]);
52-
if (!optional.outputtype) {
52+
if (!optional.outputType) {
5353
out.pipe(fs.createWriteStream(output));
5454
console.log({
5555
success: `Saved pdf as "${output}"!`,
@@ -58,7 +58,7 @@ async function main(file, optional, output) {
5858
fs.mkdirSync(output);
5959
for (let i = 0; i < out.length; i += 1) {
6060
fs.writeFileSync(
61-
`${output}/${i}.${optional.outputtype.slice(0, -4)}`,
61+
`${output}/${i}.${optional.outputType.slice(0, -4)}`,
6262
out[i]
6363
);
6464
}

0 commit comments

Comments
 (0)