@theenix/token-zap 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,7 +12,7 @@ Because LLM tokenizers process text differently than humans, hidden characters l
12
12
  You can install TokenZap directly from the npm registry using the following command:
13
13
 
14
14
  ```bash
15
- npm install @thee-nix/token-zap
15
+ npm install @theenix/token-zap
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -21,7 +21,7 @@ npm install @thee-nix/token-zap
21
21
  TokenZap exports a single function called `tokenZap` that accepts a text string and an options object. Here is a simple example:
22
22
 
23
23
  ```js
24
- import { tokenZap } from "@thee-nix/token-zap";
24
+ import { tokenZap } from "@theenix/token-zap";
25
25
 
26
26
  const text = "This is a sample text with extra spaces.";
27
27
  const cleaned = tokenZap(text);
@@ -43,7 +43,7 @@ The `tokenZap` function accepts the following options:
43
43
  #### Remove Extra Spaces Only
44
44
 
45
45
  ```js
46
- import { tokenZap } from "@thee-nix/token-zap";
46
+ import { tokenZap } from "@theenix/token-zap";
47
47
 
48
48
  const text = "This is a line with extra spaces.";
49
49
  const result = tokenZap(text);
@@ -55,7 +55,7 @@ console.log(result);
55
55
  #### Remove Articles and Extra Spaces
56
56
 
57
57
  ```js
58
- import { tokenZap } from "@thee-nix/token-zap";
58
+ import { tokenZap } from "@theenix/token-zap";
59
59
 
60
60
  const text = "The quick brown fox jumps over the lazy dog.";
61
61
  const result = tokenZap(text, { removeArticles: true });
@@ -67,7 +67,7 @@ console.log(result);
67
67
  #### Disable Trimming Extra Spaces
68
68
 
69
69
  ```js
70
- import { tokenZap } from "@thee-nix/token-zap";
70
+ import { tokenZap } from "@theenix/token-zap";
71
71
 
72
72
  const text = "This is a sample.";
73
73
  const result = tokenZap(text, { trimExtraSpaces: false, removeArticles: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theenix/token-zap",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shrink your LLM prompts instantly. TokenZap removes wasteful spacing and unnecessary characters to keep your API payloads lean and token-efficient.",
5
5
  "main": "index.js",
6
6
  "scripts": {