slash-tokens 1.4.0 → 1.4.1
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/LICENSE +29 -0
- package/README.md +15 -9
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 James Wolfe (wolfejam)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
This project's name, ⚡ mark, and red/gold color scheme ("brand") are not
|
|
26
|
+
covered by the MIT license above and are reserved for the slash-tokens
|
|
27
|
+
project. If you fork, you agree to ship your derivative under your own name
|
|
28
|
+
and colors. Representing your product as "slash-tokens" / "Slash" without
|
|
29
|
+
written consent is not permitted.
|
package/README.md
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
# /slash-tokens
|
|
2
2
|
|
|
3
3
|
[](https://github.com/Wolfe-Jam/slash-tokens/actions/workflows/test.yml)
|
|
4
|
-
[](https://www.npmjs.com/package/slash-tokens)
|
|
5
|
+
[](https://www.npmjs.com/package/slash-tokens)
|
|
6
|
+
[](https://bundlephobia.com/package/slash-tokens)
|
|
7
|
+
[](./LICENSE)
|
|
8
8
|
[](https://github.com/Wolfe-Jam/slash-tokens)
|
|
9
9
|
|
|
10
10
|
Token Optimization for Context Engineers.
|
|
11
11
|
For anyone building with LLMs. 4.8 KB WASM. Sub-millisecond. Zero dependencies.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Know the cost before the call leaves your machine.
|
|
14
|
+
|
|
15
|
+
> 🆕 **v1.4 — The Single-Source-of-Truth Edition.** New `preflightRoute()` matches the Slash proxy exactly — same-provider only, zero routing drift. `PROVIDER_MODELS` is now the single source of truth across the SDK.
|
|
16
|
+
>
|
|
17
|
+
> **v1.3 — The Opus 4.7 Edition.** Same-day support for Claude Opus 4.7 with measured token calibration (1.16–1.51x). Plus Gemini proxy fix and benchmark harness for any upstream.
|
|
14
18
|
|
|
15
19
|
```bash
|
|
16
20
|
npm install slash-tokens
|
|
@@ -54,10 +58,12 @@ Track savings across all your apps. Free key at [mcpaas.live/slash/setup](https:
|
|
|
54
58
|
|
|
55
59
|
Full docs, examples, and model pricing at **[GitHub](https://github.com/Wolfe-Jam/slash-tokens)**
|
|
56
60
|
|
|
57
|
-
##
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
**Code: MIT.** Fork it, ship it, change it, sell it.
|
|
58
64
|
|
|
59
|
-
|
|
65
|
+
**Brand: reserved.** The slash-tokens name, ⚡ mark, and red/gold colors stay with the project. If you're building on top of the SDK, ship under your own name and colors — don't represent your app as Slash.
|
|
60
66
|
|
|
61
|
-
|
|
67
|
+
---
|
|
62
68
|
|
|
63
|
-
[slashtokens.com](https://slashtokens.com)
|
|
69
|
+
🏎️ *Don't go to the Corner Shop in a Ferrari.* · [slashtokens.com](https://slashtokens.com)
|