Skip to content

Commit

Permalink
Merge branch 'master' of github.com:in-ch/image-to-ascii into new-ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
IonicaBizau committed Sep 22, 2024
2 parents 3c3605d + 57d125f commit 008bd46
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
32 changes: 32 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
declare module "image-to-ascii" {
interface ImageToAsciiOptions {
size?: {
width?: number;
height?: number;
};
colored?: boolean;
reverse?: boolean;
multiply?: number;
pixels?: string;
alphabet?: string;
empty?: string;
bg?: boolean;
fg?: boolean;
fit_screen?: boolean;
size_options?: {
screen_size?: {
width?: number;
height?: number;
};
preserve_aspect_ratio?: boolean;
};
}

function imageToAscii(
path: string,
options: ImageToAsciiOptions,
callback: (err: Error | null, converted: string) => void
): void;

export = imageToAscii;
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "3.2.1",
"description": "A Node.JS module that converts images to ASCII art.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"directories": {
"example": "example"
},
Expand All @@ -24,7 +25,8 @@
"Eric Baer <[email protected]>",
"ComFreek <[email protected]>",
"Szabo Cristian",
"Aleen <[email protected]>"
"Aleen <[email protected]>",
"in-ch <[email protected]>"
],
"license": "MIT",
"bugs": {
Expand Down Expand Up @@ -87,4 +89,4 @@
"bloggify.json",
"bloggify/"
]
}
}

0 comments on commit 008bd46

Please sign in to comment.