From 7bc2271203a56af202f7bf9ba71aa608f5e0667a Mon Sep 17 00:00:00 2001
From: Sean Morris <640101+seanmorris@users.noreply.github.com>
Date: Sun, 25 Aug 2024 17:20:41 -0400
Subject: [PATCH] README.md.
---
README.md | 34 +++++++++++++++++++++-------------
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
index 0645af0..85d490b 100644
--- a/README.md
+++ b/README.md
@@ -16,18 +16,6 @@ You can install libtuple via `npm`:
$ npm install libtuple
```
-You can also import directly via [importmaps](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap):
-
-```html
-
-```
-
#### Usage
Simply import the functions from `libtuple`:
@@ -36,12 +24,32 @@ Simply import the functions from `libtuple`:
import { Tuple, Group, Record, Dict } from 'libtuple';
```
-You can also import them via [dynamic imports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import):
+You can also import them via URL imports, or [dynamic imports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import):
+
+```javascript
+import {Tuple, Group, Record, Dict } from 'https://cdn.jsdelivr.net/npm/libtuple@0.0.7-alpha-4/index.mjs';
+```
```javascript
const { Tuple, Group, Record, Dict } = await import('https://cdn.jsdelivr.net/npm/libtuple/index.mjs');
```
+Alternatively you can add it to your importmap:
+
+```html
+
+
+```
+
### Tuple()
Pass a list of values to the `Tuple()` function. This value will be strictly equivalent to any tuple generated with the same values: