@shba007/unascii 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +3 -4
- package/dist/cli.mjs +2 -2
- package/package.json +12 -13
package/dist/cli.cjs
CHANGED
|
@@ -10,12 +10,11 @@ const index = require('./shared/unascii.B3Cdk6nG.cjs');
|
|
|
10
10
|
|
|
11
11
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
12
12
|
|
|
13
|
-
const consola__default = /*#__PURE__*/_interopDefaultCompat(consola);
|
|
14
13
|
const pathe__default = /*#__PURE__*/_interopDefaultCompat(pathe);
|
|
15
14
|
const fsDriver__default = /*#__PURE__*/_interopDefaultCompat(fsDriver);
|
|
16
15
|
|
|
17
16
|
const name = "@shba007/unascii";
|
|
18
|
-
const version = "0.4.
|
|
17
|
+
const version = "0.4.1";
|
|
19
18
|
const description = "Print any image in ascii anywhere (browser/cli)";
|
|
20
19
|
|
|
21
20
|
const storage = unstorage.createStorage({
|
|
@@ -79,13 +78,13 @@ const main = citty.defineCommand({
|
|
|
79
78
|
});
|
|
80
79
|
const image = await print.getImage();
|
|
81
80
|
if (args.output === "console") {
|
|
82
|
-
|
|
81
|
+
consola.consola.info("\n" + image);
|
|
83
82
|
} else if (args.output === "file") {
|
|
84
83
|
const outputPath = pathe__default.format({ name: index.isURL(args.path) ? args.path.split("/").at(-1)?.split(".")[0] : pathe__default.parse(args.path).name, root: "/", ext: ".txt" });
|
|
85
84
|
await storage.setItem(outputPath, image);
|
|
86
85
|
}
|
|
87
86
|
if (!print) {
|
|
88
|
-
|
|
87
|
+
consola.consola.error("Print not started.");
|
|
89
88
|
process.exit(1);
|
|
90
89
|
}
|
|
91
90
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineCommand, runMain as runMain$1 } from 'citty';
|
|
2
|
-
import consola from 'consola';
|
|
2
|
+
import { consola } from 'consola';
|
|
3
3
|
import pathe from 'pathe';
|
|
4
4
|
import { env } from 'std-env';
|
|
5
5
|
import { createStorage } from 'unstorage';
|
|
@@ -7,7 +7,7 @@ import fsDriver from 'unstorage/drivers/fs';
|
|
|
7
7
|
import { a as asciiPrint, i as isURL } from './shared/unascii.B-n97ykJ.mjs';
|
|
8
8
|
|
|
9
9
|
const name = "@shba007/unascii";
|
|
10
|
-
const version = "0.4.
|
|
10
|
+
const version = "0.4.1";
|
|
11
11
|
const description = "Print any image in ascii anywhere (browser/cli)";
|
|
12
12
|
|
|
13
13
|
const storage = createStorage({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shba007/unascii",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Print any image in ascii anywhere (browser/cli)",
|
|
5
5
|
"author": "Shirsendu Bairagi <shirsendu2001@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,27 +44,26 @@
|
|
|
44
44
|
"canvas": "^3.1.0",
|
|
45
45
|
"chalk": "^5.4.1",
|
|
46
46
|
"citty": "^0.1.6",
|
|
47
|
-
"consola": "^3.4.
|
|
47
|
+
"consola": "^3.4.2",
|
|
48
48
|
"pathe": "^2.0.3",
|
|
49
|
-
"std-env": "^3.
|
|
49
|
+
"std-env": "^3.9.0",
|
|
50
50
|
"unstorage": "^1.15.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@
|
|
54
|
-
"@commitlint/
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"eslint": "^9.21.0",
|
|
53
|
+
"@commitlint/cli": "^19.8.0",
|
|
54
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
55
|
+
"@dotenvx/dotenvx": "^1.39.1",
|
|
56
|
+
"@types/node": "^22.14.0",
|
|
57
|
+
"@vitest/coverage-v8": "^3.1.1",
|
|
58
|
+
"changelogen": "^0.6.1",
|
|
59
|
+
"eslint": "^9.24.0",
|
|
61
60
|
"eslint-config-unjs": "^0.4.2",
|
|
62
61
|
"husky": "^9.1.7",
|
|
63
62
|
"jiti": "^2.4.2",
|
|
64
63
|
"prettier": "^3.5.3",
|
|
65
|
-
"typescript": "^5.
|
|
64
|
+
"typescript": "^5.7.3",
|
|
66
65
|
"unbuild": "3.5.0",
|
|
67
|
-
"vitest": "^3.
|
|
66
|
+
"vitest": "^3.1.1"
|
|
68
67
|
},
|
|
69
68
|
"scripts": {
|
|
70
69
|
"dev": "vitest dev",
|