web-csv-toolbox 0.0.0-next-20231228093916 → 0.0.0-next-20240104031924

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 +48 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -56,6 +56,10 @@ A CSV Toolbox utilizing Web Standard APIs.
56
56
 
57
57
  ## Installation 📥
58
58
 
59
+ ### With Package manager 📦
60
+
61
+ This package can then be installed using a package manager.
62
+
59
63
  ```sh
60
64
  # Install with npm
61
65
  $ npm install web-csv-toolbox
@@ -65,6 +69,50 @@ $ yarn add web-csv-toolbox
65
69
  $ pnpm add web-csv-toolbox
66
70
  ```
67
71
 
72
+ ### From CDN (unpkg.com) 🌐
73
+
74
+ #### UMD Style 🔄
75
+
76
+ ```html
77
+ <script src="https://unpkg.com/web-csv-toolbox"></script>
78
+ <script>
79
+ const csv = `name,age
80
+ Alice,42
81
+ Bob,69`;
82
+
83
+ (async function () {
84
+ for await (const record of CSV.parse(csv)) {
85
+ console.log(record);
86
+ }
87
+ })();
88
+ </script>
89
+ ```
90
+
91
+
92
+ #### ESModule Style 📦
93
+
94
+ ```html
95
+ <script type="module">
96
+ import { parse } from 'https://unpkg.com/web-csv-toolbox/lib/index.js';
97
+
98
+ const csv = `name,age
99
+ Alice,42
100
+ Bob,69`;
101
+
102
+ for await (const record of parse(csv)) {
103
+ console.log(record);
104
+ }
105
+ </script>
106
+ ```
107
+
108
+ #### Deno 🦕
109
+
110
+ You can install and use the package by specifying the following:
111
+
112
+ ```js
113
+ import { parse } from "npm:web-csv-toolbox";
114
+ ```
115
+
68
116
  ## Usage 📘
69
117
 
70
118
  ### Parsing CSV files from strings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-csv-toolbox",
3
- "version": "0.0.0-next-20231228093916",
3
+ "version": "0.0.0-next-20240104031924",
4
4
  "description": "A CSV Toolbox utilizing Web Standard APIs.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",