Skip to content

Commit 008bd46

Browse files
committed
Merge branch 'master' of github.com:in-ch/image-to-ascii into new-version
2 parents 3c3605d + 57d125f commit 008bd46

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

lib/index.d.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
declare module "image-to-ascii" {
2+
interface ImageToAsciiOptions {
3+
size?: {
4+
width?: number;
5+
height?: number;
6+
};
7+
colored?: boolean;
8+
reverse?: boolean;
9+
multiply?: number;
10+
pixels?: string;
11+
alphabet?: string;
12+
empty?: string;
13+
bg?: boolean;
14+
fg?: boolean;
15+
fit_screen?: boolean;
16+
size_options?: {
17+
screen_size?: {
18+
width?: number;
19+
height?: number;
20+
};
21+
preserve_aspect_ratio?: boolean;
22+
};
23+
}
24+
25+
function imageToAscii(
26+
path: string,
27+
options: ImageToAsciiOptions,
28+
callback: (err: Error | null, converted: string) => void
29+
): void;
30+
31+
export = imageToAscii;
32+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "3.2.1",
44
"description": "A Node.JS module that converts images to ASCII art.",
55
"main": "lib/index.js",
6+
"types": "lib/index.d.ts",
67
"directories": {
78
"example": "example"
89
},
@@ -24,7 +25,8 @@
2425
"Eric Baer <[email protected]>",
2526
"ComFreek <[email protected]>",
2627
"Szabo Cristian",
27-
28+
"Aleen <[email protected]>",
29+
2830
],
2931
"license": "MIT",
3032
"bugs": {
@@ -87,4 +89,4 @@
8789
"bloggify.json",
8890
"bloggify/"
8991
]
90-
}
92+
}

0 commit comments

Comments
 (0)