stringweaver 1.3.4 → 1.3.5
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 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,21 +32,14 @@ An ES/JS "stringbuilder" utility module. The module delivers a constructor to cr
|
|
|
32
32
|
### Install module
|
|
33
33
|
Use `npm install stringweaver` to install the module locally.
|
|
34
34
|
|
|
35
|
-
### In browser
|
|
36
|
-
In html
|
|
37
|
-
```html
|
|
38
|
-
<script type="module" src="[location of index.js or index.min.js]"></script>
|
|
39
|
-
<!-- OR load minified directly from unpkg -->
|
|
40
|
-
<script
|
|
41
|
-
type="module"
|
|
42
|
-
src="https://app.unpkg.com/stringweaver@latest/files/Bundle/index.min.js">
|
|
43
|
-
</script>
|
|
44
|
-
```
|
|
45
35
|
### Import/use (NodeJS or browser client file)
|
|
46
36
|
```javascript
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
/* notes:
|
|
38
|
+
- make sure the script/node project is of type "module"
|
|
39
|
+
- the bundled module can be found @ https://unpkg.com/stringweaver/Bundle/index.min.js
|
|
40
|
+
- the module is imported as $S here */
|
|
49
41
|
import $S from "[location of index.js or Bundle/index.min.js]";
|
|
42
|
+
|
|
50
43
|
// assign the symbolic string extension
|
|
51
44
|
const SB = Symbol.toSB;
|
|
52
45
|
const myBrandNewString = $S`Hello`.append(" world");
|