ocr-ai 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.
- package/README.md +5 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ocr-ai
|
|
2
2
|
|
|
3
3
|
Multi-provider AI document extraction for Node.js. Extract text or structured JSON from documents using Gemini, OpenAI, Claude, Grok, or Vertex AI.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install ocr-ai
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
@@ -13,7 +13,7 @@ npm install extracta-ai
|
|
|
13
13
|
### Using Gemini
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { ExtractaAI } from '
|
|
16
|
+
import { ExtractaAI } from 'ocr-ai';
|
|
17
17
|
|
|
18
18
|
const extracta = new ExtractaAI({
|
|
19
19
|
provider: 'gemini',
|
|
@@ -31,7 +31,7 @@ if (result.success) {
|
|
|
31
31
|
### Using OpenAI
|
|
32
32
|
|
|
33
33
|
```typescript
|
|
34
|
-
import { ExtractaAI } from '
|
|
34
|
+
import { ExtractaAI } from 'ocr-ai';
|
|
35
35
|
|
|
36
36
|
const extracta = new ExtractaAI({
|
|
37
37
|
provider: 'openai',
|
|
@@ -269,7 +269,7 @@ The `vertex` provider enables access to Google Cloud's AI infrastructure, which
|
|
|
269
269
|
Vertex AI uses Google Cloud authentication instead of API keys:
|
|
270
270
|
|
|
271
271
|
```typescript
|
|
272
|
-
import { ExtractaAI } from '
|
|
272
|
+
import { ExtractaAI } from 'ocr-ai';
|
|
273
273
|
|
|
274
274
|
const extracta = new ExtractaAI({
|
|
275
275
|
provider: 'vertex',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ocr-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Multi-provider AI document extraction library - Extract text or structured JSON from documents using Gemini, OpenAI, Grok, or Claude",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"text-extraction",
|
|
40
40
|
"json-extraction"
|
|
41
41
|
],
|
|
42
|
-
"author": "",
|
|
42
|
+
"author": "remdph",
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "git+https://github.com/remdph/
|
|
46
|
+
"url": "git+https://github.com/remdph/ocr-ai.git"
|
|
47
47
|
},
|
|
48
48
|
"bugs": {
|
|
49
|
-
"url": "https://github.com/remdph/
|
|
49
|
+
"url": "https://github.com/remdph/ocr-ai/issues"
|
|
50
50
|
},
|
|
51
|
-
"homepage": "https://github.com/remdph/
|
|
51
|
+
"homepage": "https://github.com/remdph/ocr-ai#readme",
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=18.0.0"
|
|
54
54
|
},
|