quantible 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -72,10 +72,10 @@ For the quickest integration into web pages, you can use a Content Delivery Netw
72
72
  </head>
73
73
  <body>
74
74
  <div id="output"></div>
75
- <script src="https://unpkg.com/quantible/dist/index.umd.js"></script>
75
+ <script src="https://unpkg.com/quantible@latest/dist/index.iife.min.js"></script>
76
76
  <script>
77
77
  const inputString = "The price is $12.50 USD.";
78
- const spokenText = quantible.convertQuantities.autoReplaceAllMatches(inputString);
78
+ const spokenText = Quantible.convertQuantities.autoReplaceAllMatches(inputString);
79
79
  document.getElementById('output').textContent = spokenText;
80
80
  </script>
81
81
  </body>
@@ -84,9 +84,9 @@ For the quickest integration into web pages, you can use a Content Delivery Netw
84
84
 
85
85
  In this example:
86
86
 
87
- * We include Quantible by referencing the UMD build from unpkg CDN: `https://unpkg.com/quantible/dist/index.umd.js`.
88
- * The library is then globally accessible as `quantible`.
89
- * We use `quantible.convertQuantities.autoReplaceAllMatches` to process a string and display the spoken word output in the `div#output` element.
87
+ * We include Quantible by referencing the IIFE build from unpkg CDN: `https://unpkg.com/quantible@latest/dist/index.iife.min.js`.
88
+ * The library is then globally accessible as `Quantible`.
89
+ * We use `Quantible.convertQuantities.autoReplaceAllMatches` to process a string and display the spoken word output in the `div#output` element.
90
90
 
91
91
  ### 2. CommonJS (CJS) - `require`
92
92
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quantible",
3
3
  "description": "A versatile library for extracting and converting numerical values, units, currency, and mathematical expressions into their spoken word equivalents.",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",