shell-logo 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shell-logo",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Render colorful ASCII art logos in the terminal from a config file",
6
6
  "license": "MIT",
package/src/renderer.js CHANGED
@@ -18,7 +18,7 @@ export function render(config, columns, rows) {
18
18
  const grad = gradient(config.colors);
19
19
  return grad(config.shape);
20
20
  }
21
- const trimmed = shape.art.trim();
21
+ const trimmed = shape.art.replace(/^\n+/, '').trimEnd();
22
22
  const scaled = scaleArt(trimmed, columns, rows - 2);
23
23
  const grad = gradient(config.colors);
24
24
  return grad.multiline(scaled);
package/src/shapes.js CHANGED
@@ -20,7 +20,7 @@ export const SHAPES = [
20
20
  ▄████████▄
21
21
  ██████████████
22
22
  ████████████████
23
- ███▀██████▀█████
23
+ ████▀██████▀████
24
24
  ████████████████
25
25
  █████ ▀▀▀▀ █████
26
26
  ████████████████
@@ -35,7 +35,7 @@ export const SHAPES = [
35
35
  ▄████████▄
36
36
  ██████████████
37
37
  ████████████████
38
- ███▀██████▀█████
38
+ ████▀██████▀████
39
39
  ████████████████
40
40
  ██████████████
41
41
  ▐█▌▐█▌ ██ ▐█▌▐█▌
@@ -49,12 +49,12 @@ export const SHAPES = [
49
49
  ▄████████▄
50
50
  ██████████████
51
51
  ████████████████
52
- ████▀████▀██████
52
+ █████▀████▀█████
53
53
  ████████████████
54
54
  ████████████████
55
55
  ████████████████
56
56
  ████████████████
57
- █▀█ █▀██ █▀█ █▀
57
+ █▀██▀██▀██▀██▀██
58
58
  `,
59
59
  },
60
60
  {
@@ -97,9 +97,9 @@ export const SHAPES = [
97
97
  ███▄▀▀▄███
98
98
  ██████████
99
99
  ▐██████████▌
100
- ███ ████ ██
101
- ██ ██
102
- ▀▀ ▀▀
100
+ ███ ███
101
+ ██ ██
102
+ ▀▀ ▀▀
103
103
  `,
104
104
  },
105
105
  {
@@ -234,6 +234,103 @@ export const SHAPES = [
234
234
  ▀██▀
235
235
  `,
236
236
  },
237
+ {
238
+ name: 'Heart',
239
+ art: `
240
+ ▄█████▄ ▄█████▄
241
+ ████████████████
242
+ ████████████████
243
+ ██████████████
244
+ ████████████
245
+ ██████████
246
+ ████████
247
+ ██████
248
+ ████
249
+ ██
250
+ `,
251
+ },
252
+ {
253
+ name: 'Camera',
254
+ art: `
255
+ ▄██▄
256
+ ████████████████
257
+ ████████████████
258
+ ███ ▄██████▄ ███
259
+ ███ ████████ ███
260
+ ███ ████████ ███
261
+ ███ ▀██████▀ ███
262
+ ████████████████
263
+ ▀██████████████▀
264
+ `,
265
+ },
266
+ {
267
+ name: 'Laptop',
268
+ art: `
269
+ ▄████████████▄
270
+ ██ ██
271
+ ██ ██
272
+ ██ ██
273
+ ██ ██
274
+ ██████████████
275
+ ████████████████
276
+ ▀████████████▀
277
+ `,
278
+ },
279
+ {
280
+ name: 'Monitor',
281
+ art: `
282
+ ▄████████████▄
283
+ ██ ██
284
+ ██ ██
285
+ ██ ██
286
+ ██ ██
287
+ ██████████████
288
+ ████
289
+ ████████████
290
+ `,
291
+ },
292
+ {
293
+ name: 'Crown',
294
+ art: `
295
+ ▄█▄ ▄████▄ ▄█▄
296
+ ███▄▄██████▄▄███
297
+ ████████████████
298
+ ████████████████
299
+ ████████████████
300
+ ████████████████
301
+ ████████████████
302
+ ▀██████████████▀
303
+ `,
304
+ },
305
+ {
306
+ name: 'Cat',
307
+ art: `
308
+ ▄██▄ ▄██▄
309
+ █████▄ ▄█████
310
+ ████████████████
311
+ ████████████████
312
+ ████▀██████▀████
313
+ ████████████████
314
+ █████ ▀▀▀▀ █████
315
+ ██████████████
316
+ ▀██████████▀
317
+ `,
318
+ },
319
+ {
320
+ name: 'Lightbulb',
321
+ art: `
322
+ ▄██████▄
323
+ ██████████
324
+ ████████████
325
+ ████████████
326
+ ████████████
327
+ ██████████
328
+ ████████
329
+ ▀██████▀
330
+ ██████
331
+ ▀██▀
332
+ `,
333
+ },
237
334
  ];
238
335
 
239
336
  export const SHAPE_NAMES = SHAPES.map((s) => s.name);
package/src/themes.js CHANGED
@@ -22,6 +22,8 @@ export const FONTS = [
22
22
  // typical ASCII slashes and pipes, giving a "painted pixels" look.
23
23
  'Block', 'Blocks', 'Shaded Blocky', 'Small Block',
24
24
  'Dot Matrix', 'Tiles', 'Rectangles',
25
+ 'Electronic', 'Elite', 'Rebel',
26
+ 'ANSI Compact', 'Pagga', 'Delta Corps Priest 1',
25
27
 
26
28
  // Popular classic figlet fonts
27
29
  'Doom', 'Banner3-D', 'Colossal', 'Epic',