@jaimeng168/applykit 0.0.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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/package.json +31 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
import { extractJob } from "@jaimeng168/applykit-core";
|
|
4
|
+
//#region src/index.ts
|
|
5
|
+
const program = new Command();
|
|
6
|
+
program.name("applykit").description("ApplyKit CLI");
|
|
7
|
+
program.command("extract").description("Extract job posting from a URL").argument("<url>", "Job posting URL").action(async (url) => {
|
|
8
|
+
const result = await extractJob({ url });
|
|
9
|
+
console.log(result.markdown);
|
|
10
|
+
});
|
|
11
|
+
await program.parseAsync(process.argv).catch((error) => {
|
|
12
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
13
|
+
process.exitCode = 1;
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { Command } from \"commander\";\nimport { extractJob } from \"@jaimeng168/applykit-core\";\n\nconst program = new Command();\n\nprogram.name(\"applykit\").description(\"ApplyKit CLI\");\n\nprogram\n .command(\"extract\")\n .description(\"Extract job posting from a URL\")\n .argument(\"<url>\", \"Job posting URL\")\n .action(async (url: string) => {\n const result = await extractJob({ url });\n console.log(result.markdown);\n });\n\nawait program.parseAsync(process.argv).catch((error: unknown) => {\n console.error(error instanceof Error ? error.message : String(error));\n process.exitCode = 1;\n});\n"],"mappings":";;;;AAIA,MAAM,UAAU,IAAI,QAAQ;AAE5B,QAAQ,KAAK,UAAU,CAAC,CAAC,YAAY,cAAc;AAEnD,QACG,QAAQ,SAAS,CAAC,CAClB,YAAY,gCAAgC,CAAC,CAC7C,SAAS,SAAS,iBAAiB,CAAC,CACpC,OAAO,OAAO,QAAgB;CAC7B,MAAM,SAAS,MAAM,WAAW,EAAE,IAAI,CAAC;CACvC,QAAQ,IAAI,OAAO,QAAQ;AAC7B,CAAC;AAEH,MAAM,QAAQ,WAAW,QAAQ,IAAI,CAAC,CAAC,OAAO,UAAmB;CAC/D,QAAQ,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;CACpE,QAAQ,WAAW;AACrB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jaimeng168/applykit",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"bin": {
|
|
6
|
+
"applykit": "./dist/index.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsdown",
|
|
25
|
+
"prepublishOnly": "bun run build"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@jaimeng168/applykit-core": "0.0.0",
|
|
29
|
+
"commander": "^15.0.0"
|
|
30
|
+
}
|
|
31
|
+
}
|