@assuredloop/orca-bot-kit 0.1.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/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # @assuredloop/orca-bot-kit
2
+
3
+ Orca bot kit.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install -g @assuredloop/orca-bot-kit
9
+ okb --version
10
+ ```
package/bin/okb.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { run } from '../src/index.js';
3
+
4
+ run(process.argv.slice(2));
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@assuredloop/orca-bot-kit",
3
+ "version": "0.1.0",
4
+ "description": "Orca bot kit",
5
+ "type": "module",
6
+ "bin": {
7
+ "okb": "bin/okb.js"
8
+ },
9
+ "main": "./src/index.js",
10
+ "files": [
11
+ "bin",
12
+ "src"
13
+ ],
14
+ "scripts": {
15
+ "test": "node --test"
16
+ },
17
+ "engines": {
18
+ "node": ">=20.0.0"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "license": "MIT",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/assuredloop/orca-bot-kit.git"
27
+ }
28
+ }
package/src/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import { createRequire } from 'node:module';
2
+
3
+ const { version } = createRequire(import.meta.url)('../package.json');
4
+
5
+ export function run(args) {
6
+ if (args.includes('--version') || args.includes('-v')) {
7
+ console.log(version);
8
+ return;
9
+ }
10
+ console.log(`okb ${version}\n\nUsage: okb [--version]`);
11
+ }