tokenflx 1.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/README.md +13 -0
- package/bin/tflx.js +10 -0
- package/package.json +30 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# tflx
|
|
2
|
+
|
|
3
|
+
Short alias for [tokenflexing](https://www.npmjs.com/package/tokenflexing) — the CLI for tracking and sharing your AI token usage.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx tflx sync
|
|
7
|
+
npx tflx connect
|
|
8
|
+
npx tflx watch
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This is identical to running `npx tokenflexing <command>`. Use whichever you prefer.
|
|
12
|
+
|
|
13
|
+
→ [tokenflexing.com](https://tokenflexing.com)
|
package/bin/tflx.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from 'child_process';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
4
|
+
import { dirname, resolve } from 'path';
|
|
5
|
+
|
|
6
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const bin = resolve(__dirname, '../node_modules/.bin/tokenflexing');
|
|
8
|
+
|
|
9
|
+
spawn(bin, process.argv.slice(2), { stdio: 'inherit' })
|
|
10
|
+
.on('exit', (code) => process.exit(code ?? 0));
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tokenflx",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Short alias for tokenflexing CLI. Use `npx tflx` instead of `npx tokenflexing`.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"tokenflx": "bin/tflx.js"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tokenflexing": "latest"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=18"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"tokenflexing",
|
|
17
|
+
"tflx",
|
|
18
|
+
"claude-code",
|
|
19
|
+
"cursor",
|
|
20
|
+
"ai-usage",
|
|
21
|
+
"tokens",
|
|
22
|
+
"cli"
|
|
23
|
+
],
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/khadinakbaronline/tokenflexing"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://tokenflexing.com"
|
|
30
|
+
}
|