Skip to content

Commit 83ec5e0

Browse files
Fixes to #57 (#58)
* fix(src/index.js): Changes all occurences of `outputtype` to `outputType` * chore(package.json): Update version to 18.11.1
1 parent 9b0ad76 commit 83ec5e0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ Check `--help` or `--version` option for more details.
9393
```javascript
9494
handwritten(rawtext)
9595
handwritten(rawtext, { ruled: true })
96-
handwritten(rawtext, { outputtype: "jpeg/buf" })
97-
handwritten(rawtext, { ruled: true, outputtype: "jpeg/b64" })
98-
handwritten(rawtext, { ruled: true, outputtype: "jpeg/b64" , inkColor: COLORS.RED})
96+
handwritten(rawtext, { outputType: "jpeg/buf" })
97+
handwritten(rawtext, { ruled: true, outputType: "jpeg/b64" })
98+
handwritten(rawtext, { ruled: true, outputType: "jpeg/b64" , inkColor: COLORS.RED})
9999
```
100100

101-
Default outputtype: "pdf". Supported output types are: `pdf`, `jpeg/buf`, `jpeg/b64`, `png/buf` and `png/b64`. If the output type is set to `pdf`, it returns a promise that will resolve in a [pdfkit](https://github.com/foliojs/pdfkit#readme) document instance. Else it will return a promise that will resolve in an array containing the buffer or base64 value of the images according to the output type provided.
101+
Default outputType: "pdf". Supported output types are: `pdf`, `jpeg/buf`, `jpeg/b64`, `png/buf` and `png/b64`. If the output type is set to `pdf`, it returns a promise that will resolve in a [pdfkit](https://github.com/foliojs/pdfkit#readme) document instance. Else it will return a promise that will resolve in an array containing the buffer or base64 value of the images according to the output type provided.
102102
Default `inkColor` is `black`, more ink colors are available through `COLORS` under `handwritten.js/constants`
103103

104104
## Screenshot

package.json

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

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async function main(rawText = "", optionalArgs = {}) {
250250
)
251251
);
252252
}
253-
const outputType = optionalArgs.outputtype || "pdf";
253+
const outputType = optionalArgs.outputType || "pdf";
254254
const ruled = optionalArgs.ruled || false;
255255
const inkColor = optionalArgs.inkColor || null;
256256
if (inkColor !== null && inkColor !== "red" && inkColor !== "blue") {

0 commit comments

Comments
 (0)