@jonandev/longbeard 0.12.2 → 0.14.0

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.
Files changed (61) hide show
  1. package/AGENTS.md +5 -6
  2. package/CHANGELOG.md +51 -0
  3. package/README.md +3 -4
  4. package/beard.json +6 -20
  5. package/bin/long-beard.js +2 -2
  6. package/package.json +2 -2
  7. package/skills/design/SKILL.md +21 -37
  8. package/skills/design-brief/SKILL.md +7 -5
  9. package/skills/design-check/SKILL.md +1 -1
  10. package/skills/design-check/references/design-rules.md +28 -5
  11. package/skills/design-check/scripts/rules.mjs +143 -9
  12. package/skills/design-content/SKILL.md +2 -0
  13. package/skills/design-direction/SKILL.md +87 -95
  14. package/skills/design-direction/references/design-floor.md +118 -0
  15. package/skills/design-direction/references/graphic.md +5 -10
  16. package/skills/design-direction/references/library.md +8 -6
  17. package/skills/design-direction/references/screen-template.html +3 -3
  18. package/skills/design-direction/references/subject.md +2 -2
  19. package/skills/design-direction/references/variants.js +43 -0
  20. package/skills/design-direction/scripts/canvas.mjs +311 -0
  21. package/skills/design-direction/scripts/colours.mjs +247 -0
  22. package/skills/design-direction/scripts/moodboard.mjs +233 -93
  23. package/skills/design-direction/scripts/rules.mjs +747 -0
  24. package/skills/design-direction/scripts/sheet.mjs +3 -1
  25. package/skills/design-figma/SKILL.md +3 -1
  26. package/skills/design-identity/SKILL.md +17 -8
  27. package/skills/{design-direction → design-identity}/references/controls.md +10 -10
  28. package/skills/design-identity/references/design-floor.md +118 -0
  29. package/skills/design-identity/references/identity-board.html +2 -2
  30. package/skills/design-identity/scripts/colours.mjs +35 -1
  31. package/skills/design-identity/scripts/sheet.mjs +3 -1
  32. package/skills/design-moodboard/SKILL.md +44 -76
  33. package/skills/design-moodboard/references/graphic.md +1 -1
  34. package/skills/design-moodboard/references/sources.md +12 -1
  35. package/skills/design-moodboard/scripts/group.mjs +1 -1
  36. package/skills/design-moodboard/scripts/moodboard.mjs +233 -93
  37. package/skills/design-prototype/SKILL.md +66 -82
  38. package/skills/design-prototype/references/design-floor.md +118 -0
  39. package/skills/design-prototype/references/design-md-template.md +3 -0
  40. package/skills/design-prototype/references/graphic.md +6 -5
  41. package/skills/design-prototype/references/variants.js +43 -0
  42. package/skills/design-prototype/scripts/drift.mjs +273 -0
  43. package/skills/design-prototype/scripts/links.mjs +5 -4
  44. package/skills/design-prototype/scripts/rules.mjs +143 -9
  45. package/skills/design-prototype/scripts/sheet.mjs +3 -1
  46. package/skills/design-wordmark/SKILL.md +8 -2
  47. package/skills/design-wordmark/scripts/sheet.mjs +3 -1
  48. package/skills/idea/SKILL.md +3 -3
  49. package/skills/design-direction/references/design-rules.md +0 -203
  50. package/skills/design-direction/references/five-second.md +0 -47
  51. package/skills/design-direction/references/full-build.md +0 -19
  52. package/skills/design-direction/references/grid.md +0 -114
  53. package/skills/design-direction/scripts/layout-diff.mjs +0 -118
  54. package/skills/design-families/SKILL.md +0 -138
  55. package/skills/design-families/scripts/contact-sheet.mjs +0 -259
  56. package/skills/design-families/scripts/families.mjs +0 -607
  57. package/skills/design-families/scripts/measure.mjs +0 -1728
  58. package/skills/design-families/scripts/moodboard.mjs +0 -469
  59. package/skills/design-families/scripts/tag.mjs +0 -289
  60. package/skills/design-prototype/references/design-rules.md +0 -203
  61. package/skills/design-prototype/references/five-second.md +0 -47
@@ -1,138 +0,0 @@
1
- ---
2
- name: design-families
3
- description: >
4
- Optional. Sort a big or messy moodboard (a large Figma board, a folder, a
5
- wide search) into families: groups of references that look alike from across
6
- a room. Every reference is measured and tagged, sorted by script, checked by
7
- eye, and named for what is seen. They take one or two families, and those
8
- become the references the next skills work from. Call it by hand, or when
9
- design or design-moodboard offers it for a board over about 60 references.
10
- Never worth it for a board someone already curated to a few dozen.
11
- ---
12
-
13
- # Design families
14
-
15
- **Needs:** `docs/design/design-moodboard.md`
16
- **Uses if there:** `docs/design/design-brief.md`
17
- **Writes:** `docs/design/design-families.md`
18
-
19
- One job: sort a board into looks so choosing is easy. It reads and sorts the board; it builds no screens.
20
-
21
- Comes out:
22
-
23
- - **`docs/design/design-families.md`**, committed: each family named, what it shares, how big it is, and which they took.
24
- - **In Figma**, for a Figma board: a new page, `Families`, with one section per family holding copies of its cards. Their own pages are never moved or changed.
25
- - **`.longbeard/design/families/`**, gitignored: `profiles.json`, `tags.tsv`, one TSV per family, the families page.
26
-
27
- ## Gate
28
-
29
- 1. No board → `design-moodboard` first, or they give one now (a Figma link, a folder, a list of links).
30
- 2. Under about 60 references → say a board this size is easier to choose from as it is, and stop unless they insist.
31
- 3. A Figma board of hundreds → ask once, "The whole file, or one page or section?", and offer to read only cards their own tags mark as screens. Reading and tagging 1,300 cards cost about 800K tokens.
32
-
33
- A board `design-moodboard` already read has its captures in `.longbeard/design/moodboard/refs/` and `board.md`. Otherwise run `design-moodboard` on it first: it reads the board (Figma originals, crops from shared sheets, captures for links) and keeps every card, with no picker.
34
-
35
- ## 1. Measure, in one browser run
36
-
37
- `links.tsv` (`name<TAB>link`) for the keeps with a live page, then:
38
-
39
- ```
40
- node <skill>/scripts/measure.mjs .longbeard/design/moodboard/refs --links .longbeard/design/families/links.tsv --profiles .longbeard/design/families/profiles.json --jobs 6
41
- ```
42
-
43
- From each picture: how light, how empty, how loud, how busy, its colours, and where things sit on a 6×4 grid. From a live page: the largest type and where it sits, what the screen is made of, its fonts, gradients and patterns. A screen on a presentation surround is measured inside the surround. Never one call per image, and never read the profiles into the chat.
44
-
45
- ## 2. Tag what numbers cannot see
46
-
47
- ```
48
- node <skill>/scripts/tag.mjs .longbeard/design/families/profiles.json --sheets <scratch>/tag
49
- node <skill>/scripts/tag.mjs .longbeard/design/families/profiles.json .longbeard/design/families/tags.tsv
50
- ```
51
-
52
- The first makes sheets of 16 untagged keeps and prints the vocabulary, one vocabulary in two layers:
53
-
54
- - **The look**, sorted on, stored in `tags`: picture, photo, type, weight, layout, colour, surface, scale, and `motion` (none, kinetic, blur-grain, ui, repetition) for gifs, videos and live pages.
55
- - **What it is and is for**, stored in `about`, checked but never sorted on: format, domain, mood, hue, density, and `shows` (portrait, close-crop, landscape, still-life, classical-art, cutout, type-only), what the picture shows. It is what a brief and a search pick references by.
56
-
57
- Write a header row naming the columns (`name<TAB>picture<TAB>…<TAB>scale<TAB>motion<TAB>format<TAB>domain<TAB>mood<TAB>hue<TAB>density<TAB>note`, any order), then one row per keep from the sheets. The eight look fields are required; motion, the about fields and the note are optional, an empty cell when not seen. A row without a header is the old one: name, the eight look fields, an optional note. A header can also name one `line` column: the keep's tags as one flat line of words, the way people keep them by hand, look first, then ` · `, then about: `photo colour serif weight:bold split muted grain large kinetic · web-hero fashion calm red airy portrait`. It fills the fields the cells leave empty; a field in both is refused. A word in two fields (today none, ui, collage, mono, duotone, bold, editorial) is written `field:word`, as `type:mono` or `mood:editorial`; bare, or in no field, it refuses the merge and is named. Leave none out: a line without picture, photo or motion reads them as none. Every tool reads such a line with `parseTagLine` from `tag.mjs`, and writes one with `formatTagLine`. The second command checks every word against its field. Their own board tags seed the rows: map each to the vocabulary and tag only what is left. Tag what is there, never what is good. On a big board, split the sheets across a few agents.
58
-
59
- ## 3. Sort, then the eye
60
-
61
- ```
62
- node <skill>/scripts/families.mjs .longbeard/design/families/profiles.json --board .longbeard/design/families/board.md --sliders "loud=2,picture=4,rich=2,cool=2,dense=2"
63
- ```
64
-
65
- The sliders are the design brief's personality, copied from its `personality:` line (`picture-led` is `picture`; `playful` and `new` are passed over, since a picture cannot tell them: judge those by eye in step 4). It joins the closest references first and stops when groups no longer look alike, so outliers stay strays. A wide gap on what is seen first (how empty, how loud, type size, where things sit, what the picture is) keeps two apart; light or dark does not. A bin far bigger than the rest is sorted again on its own and said; one it cannot split is sorted alone with `--only .longbeard/design/families/families/f3.tsv --spread 0.4` (its parts land in `families/families/f3-split/`). `--spread` lower splits finer.
66
-
67
- Then check each family by eye on contact sheets, never picture by picture:
68
-
69
- ```
70
- node <skill>/scripts/contact-sheet.mjs .longbeard/design/families/families/f1.tsv --out <scratch>/f1 --contain
71
- ```
72
-
73
- - Split a family that holds two looks, merge two that are one, place each stray. Strays are often the most distinctive references: never drop one for being a stray.
74
- - **Name each family for what is seen**, in words a person outside design would use ("one huge word is the picture", "dark app pages, headline centred"). If the only honest name is a number ("dark, all picture"), it is a bin: break it up.
75
- - As many families as there are looks. Never merge to reach a number.
76
- - On hundreds of references: check each family's six most typical now, and every member of a family once it is taken.
77
-
78
- ## 4. Show them, once
79
-
80
- The families page, each family as its six most typical, its size and what it shares:
81
-
82
- ```
83
- node <skill>/scripts/moodboard.mjs .longbeard/design/families/board.md --overview 6 --out .longbeard/design/families/families.html
84
- ```
85
-
86
- For a Figma board, also build the `Families` page with `use_figma` (load `figma-use` first): a section per family, named, with copies of its cards, most typical first. Read the names back from the nodes.
87
-
88
- In the same message, one line per family: its name, what the eye changed from the numbers, and, as hints only, which fit the design brief's personality, which look like its "never", and which rely on pictures they do not have. Where what they chose sits far from what they said ("you said quiet; your board is loud"), ask which to go by. Then:
89
-
90
- > Take the families you want to work from, one or two. Note any that look like two, or belong together.
91
-
92
- - **A split or merge note:** apply it, show the page again. `families.mjs` will not overwrite a board: remove `.longbeard/design/families/board.md` before sorting again.
93
- - **None taken:** ask in one line what is missing, and offer `design-moodboard` for a search sized to it.
94
- - **Two taken:** two looks. Ask which comes first; the other waits.
95
-
96
- ## Write `docs/design/design-families.md`
97
-
98
- ```markdown
99
- # Families: <product>
100
-
101
- <n> references sorted into <n> families and <n> strays.
102
-
103
- ## Taken
104
- ### <family name>
105
- <what its members share, in one or two lines: how much type against picture, how empty, how loud, how pictures are treated> · <n> references
106
-
107
- ## Also on the board
108
- - <family name> — <what it shares> · <n>
109
- ```
110
-
111
- No names, links or paths. The members of each family are in `.longbeard/design/families/families/f<n>.tsv`; the taken ones are the references `design-direction` and `design-identity` work from.
112
-
113
- Then the next step in one line: `design-direction`.
114
-
115
- ## A library that grows
116
-
117
- When new references arrive after the families are named, add them without sorting again: nothing already in a family moves, and the names stay. Measure and tag only the new keeps into the same `profiles.json` (steps 1 and 2), then:
118
-
119
- ```
120
- node <skill>/scripts/families.mjs .longbeard/design/families/profiles.json --assign .longbeard/design/families/families.json
121
- ```
122
-
123
- Every reference in no family is new. Each joins the nearest family when it sits within `--spread`, with a confidence from 0 to 1 and its 5 nearest references already in families. The new ones that join nothing are sorted among themselves: a group of three or more is a **seed**, a proposed new family; the rest are strays with their nearest family. It writes `assign.json` and never changes `families.json`.
124
-
125
- - Check each join by eye on a contact sheet beside its family, low confidence first. Move one that does not belong.
126
- - Name each seed for what is seen, as in step 3, or fold it into a family by eye.
127
- - Place each stray as in step 3.
128
- - Show only what changed: which family each new reference went to, and any new family. Then update `docs/design/design-families.md`: sizes, and any new family under **Also on the board**.
129
-
130
- Sort the whole pool again only when they ask, or when the new references outnumber the ones already sorted.
131
-
132
- ## Do not
133
-
134
- - Run on a curated board of a few dozen without being asked.
135
- - Move, rename or delete anything on their own Figma pages.
136
- - Pick the family for them, or hide one because it looks like their "never".
137
- - Sort before every keep is measured and tagged, or read profiles into the chat.
138
- - Sort a named pool from scratch to add a few new references: use `--assign`.
@@ -1,259 +0,0 @@
1
- #!/usr/bin/env node
2
- // Build labelled contact sheets from a TSV of label\timageURL. The image can
3
- // be a local file too, so a family's references are sorted by eye from a few
4
- // sheets of thumbnails, not opened one at a time.
5
- // Writes JPEG grids (~36 per sheet) into an output directory (scratch, not .longbeard/design/).
6
- // Viewing listing thumbnails is allowed; this is not a capture.
7
- //
8
- // node contact-sheet.mjs candidates.tsv --out /tmp/hunt-sheets
9
- // node contact-sheet.mjs family-f3.tsv --out <scratch>/f3 --contain # TSV: label<TAB>refs/name.jpg
10
- import { spawn } from "node:child_process";
11
- import {
12
- existsSync,
13
- mkdirSync,
14
- mkdtempSync,
15
- readFileSync,
16
- rmSync,
17
- writeFileSync,
18
- } from "node:fs";
19
- import { tmpdir } from "node:os";
20
- import { join, resolve } from "node:path";
21
- import { pathToFileURL } from "node:url";
22
-
23
- const args = process.argv.slice(2);
24
- const flag = (name, def) => {
25
- const i = args.indexOf(`--${name}`);
26
- if (i === -1) return def;
27
- const v = args[i + 1];
28
- args.splice(i, 2);
29
- return v;
30
- };
31
- const tsvPath = args[0];
32
- const outDir = resolve(flag("out", "") || "");
33
- const perSheet = Math.max(1, Number(flag("per", "36")) || 36);
34
- const cols = Math.min(8, Math.max(1, Number(flag("cols", "6")) || 6));
35
- const containAt = args.indexOf("--contain");
36
- const contain = containAt !== -1;
37
- if (contain) args.splice(containAt, 1);
38
- if (!tsvPath || !outDir) {
39
- console.error("usage: node contact-sheet.mjs candidates.tsv --out <scratch>/sheets [--per 36] [--cols 6] [--contain]");
40
- process.exit(2);
41
- }
42
-
43
- const lines = readFileSync(tsvPath, "utf8")
44
- .split(/\r?\n/)
45
- .map((l) => l.trim())
46
- .filter(Boolean)
47
- .map((l) => {
48
- // label\timageURL, and any columns after that (a listing URL) are ignored.
49
- const cols = l.split("\t").map((c) => c.trim());
50
- if (cols.length === 1) return { label: l, url: l };
51
- return { label: cols[0], url: cols[1] };
52
- })
53
- .map((r) => (/^https?:\/\//i.test(r.url) || !existsSync(r.url) ? r : { ...r, url: pathToFileURL(resolve(r.url)).href }))
54
- .filter((r) => /^(https?|file):\/\//i.test(r.url));
55
-
56
- if (!lines.length) {
57
- console.error("no label\timageURL rows found");
58
- process.exit(1);
59
- }
60
-
61
- function findChrome() {
62
- const env = process.env.CHROME_PATH;
63
- // CHROME_PATH=none: run as if no browser were installed (a quick test run).
64
- if (env === "none") return null;
65
- if (env && existsSync(env)) return env;
66
- const home = process.env.HOME || process.env.USERPROFILE || "";
67
- const local = process.env.LOCALAPPDATA || "";
68
- const pf = process.env.PROGRAMFILES || "C:\\Program Files";
69
- const pf86 = process.env["PROGRAMFILES(X86)"] || "C:\\Program Files (x86)";
70
- const candidates = [
71
- join(pf, "Google/Chrome/Application/chrome.exe"),
72
- join(pf86, "Google/Chrome/Application/chrome.exe"),
73
- join(local, "Google/Chrome/Application/chrome.exe"),
74
- join(pf, "Microsoft/Edge/Application/msedge.exe"),
75
- "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
76
- "/Applications/Chromium.app/Contents/MacOS/Chromium",
77
- "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge",
78
- join(home, "Applications/Google Chrome.app/Contents/MacOS/Google Chrome"),
79
- "/usr/bin/google-chrome",
80
- "/usr/bin/google-chrome-stable",
81
- "/usr/bin/chromium",
82
- "/usr/bin/chromium-browser",
83
- ];
84
- return candidates.find((path) => path && existsSync(path)) || null;
85
- }
86
-
87
- const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
88
- const exe = findChrome();
89
- if (!exe) {
90
- console.error("No Chrome/Edge/Chromium found. Install one or set CHROME_PATH.");
91
- process.exit(1);
92
- }
93
- if (typeof WebSocket === "undefined") {
94
- console.error("Node 22+ is required.");
95
- process.exit(1);
96
- }
97
-
98
- const dir = mkdtempSync(join(tmpdir(), "hunt-sheet-"));
99
- let proc;
100
- const drop = () => {
101
- try {
102
- if (proc?.pid) process.kill(proc.pid, "SIGKILL");
103
- } catch {}
104
- try {
105
- rmSync(dir, { recursive: true, force: true });
106
- } catch {}
107
- };
108
- process.once("exit", drop);
109
-
110
- proc = spawn(
111
- exe,
112
- [
113
- "--headless=new",
114
- "--remote-debugging-port=0",
115
- `--user-data-dir=${dir}`,
116
- "--no-first-run",
117
- "--hide-scrollbars",
118
- "--mute-audio",
119
- "--force-color-profile=srgb",
120
- "--window-size=1600,1200",
121
- "about:blank",
122
- ],
123
- { stdio: ["ignore", "ignore", "pipe"] },
124
- );
125
-
126
- let buf = "";
127
- const wsUrl = await new Promise((resolveWs, reject) => {
128
- const t = setTimeout(() => reject(new Error("Chrome did not start")), 20000);
129
- proc.stderr.on("data", (d) => {
130
- buf += d.toString();
131
- const m = buf.match(/DevTools listening on (ws:\/\/[^\s]+)/);
132
- if (m) {
133
- clearTimeout(t);
134
- resolveWs(m[1]);
135
- }
136
- });
137
- proc.on("exit", (code) => {
138
- clearTimeout(t);
139
- reject(new Error(`Chrome exited ${code}`));
140
- });
141
- });
142
-
143
- const ws = new WebSocket(wsUrl);
144
- await new Promise((res, rej) => {
145
- ws.onopen = res;
146
- ws.onerror = () => rej(new Error("CDP socket failed"));
147
- });
148
- let nextId = 1;
149
- const pending = new Map();
150
- ws.onmessage = (ev) => {
151
- const msg = JSON.parse(typeof ev.data === "string" ? ev.data : Buffer.from(ev.data).toString());
152
- if (msg.id && pending.has(msg.id)) {
153
- const { resolve: ok, reject: bad } = pending.get(msg.id);
154
- pending.delete(msg.id);
155
- if (msg.error) bad(new Error(msg.error.message));
156
- else ok(msg.result);
157
- }
158
- };
159
- const send = (method, params = {}, sessionId, timeoutMs = 30000) => {
160
- const id = nextId++;
161
- return new Promise((resolveSend, reject) => {
162
- const timer = setTimeout(() => {
163
- pending.delete(id);
164
- reject(new Error(`CDP timeout: ${method}`));
165
- }, timeoutMs);
166
- pending.set(id, {
167
- resolve: (v) => {
168
- clearTimeout(timer);
169
- resolveSend(v);
170
- },
171
- reject: (e) => {
172
- clearTimeout(timer);
173
- reject(e);
174
- },
175
- });
176
- ws.send(JSON.stringify(sessionId ? { id, method, params, sessionId } : { id, method, params }));
177
- });
178
- };
179
-
180
- const { targetId } = await send("Target.createTarget", { url: "about:blank" });
181
- const { sessionId } = await send("Target.attachToTarget", { targetId, flatten: true });
182
- const page = (method, params, timeoutMs) => send(method, params, sessionId, timeoutMs);
183
-
184
- await page("Page.enable");
185
- await page("Runtime.enable");
186
- await page("Emulation.setDeviceMetricsOverride", {
187
- width: 1600,
188
- height: 1200,
189
- deviceScaleFactor: 1,
190
- mobile: false,
191
- });
192
-
193
- mkdirSync(outDir, { recursive: true });
194
- const sheets = [];
195
- for (let i = 0; i < lines.length; i += perSheet) {
196
- sheets.push(lines.slice(i, i + perSheet));
197
- }
198
-
199
- const esc = (s) =>
200
- String(s)
201
- .replace(/&/g, "&amp;")
202
- .replace(/</g, "&lt;")
203
- .replace(/>/g, "&gt;")
204
- .replace(/"/g, "&quot;");
205
-
206
- for (let s = 0; s < sheets.length; s++) {
207
- const cells = sheets[s]
208
- .map(
209
- (r) =>
210
- `<figure><img src="${esc(r.url)}" loading="eager"><figcaption>${esc(r.label)}</figcaption></figure>`,
211
- )
212
- .join("\n");
213
- const html = `<!doctype html><meta charset=utf-8>
214
- <style>
215
- body { margin: 16px; background: #1a1a1a; color: #eee; font: 11px/1.2 system-ui, sans-serif; }
216
- .grid { display: grid; grid-template-columns: repeat(${cols}, 1fr); gap: 10px; }
217
- figure { margin: 0; background: #2a2a2a; border-radius: 4px; overflow: hidden; }
218
- img { display: block; width: 100%; height: ${contain ? Math.round(1200 / cols) : 140}px; object-fit: ${contain ? "contain" : "cover"}; background: #111; }
219
- figcaption { padding: 6px 8px; word-break: break-word; max-height: 2.4em; overflow: hidden; }
220
- </style>
221
- <div class="grid">${cells}</div>
222
- <script>
223
- Promise.all([...document.images].map((img) => img.decode().catch(() => {}))).then(() => {
224
- document.title = "ready";
225
- });
226
- </script>`;
227
- const htmlPath = join(dir, `sheet-${s + 1}.html`);
228
- writeFileSync(htmlPath, html);
229
- await page("Page.navigate", { url: pathToFileURL(htmlPath).href }, 30000);
230
- await sleep(500);
231
- for (let i = 0; i < 60; i++) {
232
- const title = (
233
- await page("Runtime.evaluate", { expression: "document.title", returnByValue: true })
234
- ).result.value;
235
- if (title === "ready") break;
236
- await sleep(150);
237
- }
238
- await sleep(400);
239
- const metrics = await page("Page.getLayoutMetrics");
240
- const size = metrics.cssContentSize || metrics.contentSize;
241
- const width = Math.max(1, Math.ceil(size.width || 1600));
242
- const height = Math.max(1, Math.min(Math.ceil(size.height || 1200), 8000));
243
- const { data } = await page(
244
- "Page.captureScreenshot",
245
- {
246
- format: "jpeg",
247
- quality: 80,
248
- captureBeyondViewport: true,
249
- clip: { x: 0, y: 0, width, height, scale: 1 },
250
- },
251
- 60000,
252
- );
253
- const outPath = join(outDir, `sheet-${String(s + 1).padStart(2, "0")}.jpg`);
254
- writeFileSync(outPath, Buffer.from(data, "base64"));
255
- console.log(outPath);
256
- }
257
-
258
- drop();
259
- process.exit(0);