@graphysdk/data-import-utils 1.8.1-beta.1787065194945 → 1.8.1-beta.1787132472323

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 +16 -22
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,24 +1,19 @@
1
- # `@graphysdk/data-import-utils`
1
+ # @graphysdk/data-import-utils
2
2
 
3
- Parse CSV, TSV, JSON, and spreadsheet files into the `{ columns, rows }` data shape used by Graphy agents and chart configs.
3
+ Parse CSV, TSV, JSON, and spreadsheet files into the `{ columns, rows }` shape used by Graphy charts and agents.
4
4
 
5
- ## Docs
6
-
7
- - [Data Import overview](https://docs.graphy.dev/data-import-utils)
8
- - [Examples](https://docs.graphy.dev/data-import-utils/examples)
9
- - [Agents SDK](https://docs.graphy.dev/agents/sdk/installation) — feed parsed data into `@graphysdk/agents-sdk`
10
-
11
- ## Installation
5
+ ## Install
12
6
 
13
7
  ```bash
14
- pnpm add @graphysdk/data-import-utils
8
+ npm install @graphysdk/data-import-utils
15
9
  ```
16
10
 
17
- No npm org token and no `@graphysdk/core` dependency required.
11
+ ## Docs
18
12
 
19
- ## Usage
13
+ - [Overview](https://docs.graphy.dev/data-import-utils)
14
+ - [Examples](https://docs.graphy.dev/data-import-utils/examples)
20
15
 
21
- ### Parse a file from disk
16
+ ## Usage
22
17
 
23
18
  ```ts
24
19
  import { fromFile } from '@graphysdk/data-import-utils/file';
@@ -27,18 +22,13 @@ const data = await fromFile('sales.csv');
27
22
  const spreadsheet = await fromFile('report.xlsx', { sheet: 'Revenue' });
28
23
  ```
29
24
 
30
- ### Parse from a URL
31
-
32
25
  ```ts
33
26
  import { fromURL } from '@graphysdk/data-import-utils/url';
34
27
 
35
28
  const data = await fromURL('https://example.com/sales.csv');
36
- const spreadsheet = await fromURL('https://example.com/report.xlsx', { sheet: 'Revenue' });
37
29
  ```
38
30
 
39
- ### Format-specific imports
40
-
41
- Each format has a dedicated entrypoint so you only bundle what you need:
31
+ Each format also has its own entry, so you only bundle what you need:
42
32
 
43
33
  ```ts
44
34
  import { fromCSV } from '@graphysdk/data-import-utils/csv';
@@ -48,7 +38,7 @@ import { fromXLS } from '@graphysdk/data-import-utils/xls';
48
38
  import { fromODS } from '@graphysdk/data-import-utils/ods';
49
39
  ```
50
40
 
51
- ### Feeding into agents-sdk
41
+ ## With the Agents SDK
52
42
 
53
43
  ```ts
54
44
  import { fromFile } from '@graphysdk/data-import-utils/file';
@@ -63,12 +53,16 @@ const result = await ai.generateGraph({
63
53
  });
64
54
  ```
65
55
 
66
- ## Supported Formats
56
+ ## Formats
67
57
 
68
- | Format | Function | Input type |
58
+ | Format | Function | Input |
69
59
  | ------ | ------------ | ------------- |
70
60
  | CSV | `fromCSV()` | `string` |
71
61
  | TSV | `fromTSV()` | `string` |
72
62
  | XLSX | `fromXLSX()` | `ArrayBuffer` |
73
63
  | XLS | `fromXLS()` | `ArrayBuffer` |
74
64
  | ODS | `fromODS()` | `ArrayBuffer` |
65
+
66
+ ## Support
67
+
68
+ Questions and community help: [Discord](https://discord.gg/yGmYCjkSr).
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "data-import",
13
13
  "parser"
14
14
  ],
15
- "version": "1.8.1-beta.1787065194945",
15
+ "version": "1.8.1-beta.1787132472323",
16
16
  "type": "module",
17
17
  "sideEffects": false,
18
18
  "types": "./dist/index.d.ts",