pure-formatters 3.0.1 → 3.0.2

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 +12 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,29 +3,28 @@
3
3
  A collection of pure JS functions that return formatted data. Useful in any view
4
4
  engine.
5
5
 
6
- ## Installation
7
-
8
- ### Node.js
6
+ ## Using a Package Manager
9
7
 
10
8
  ```bash
11
9
  npm install pure-formatters
12
10
  ```
13
11
 
14
- ### Browser
12
+ ```javascript
13
+ import { sentenceList } from "pure-formatters";
15
14
 
16
- ```html
17
- <script type="module" src="https://unpkg.com/pure-formatters/index.js"></script>
15
+ console.log(sentenceList(["Bettye Norton", "Melissa Reed", "Kari Osborne"]));
16
+ // Bettye Norton, Melissa Reed, and Kari Osborne.
18
17
  ```
19
18
 
20
- ## Usage
19
+ ## In the Browser
21
20
 
22
- ```javascript
23
- import { sentenceList } from "pure-formatters";
24
-
25
- const list = ["Bettye Norton", "Melissa Reed", "Kari Osborne"];
21
+ ```html
22
+ <script type="module">
23
+ import { sentenceList } from "https://esm.run/pure-formatters@3";
26
24
 
27
- sentenceList(list);
28
- // Bettye Norton, Melissa Reed, and Kari Osborne.
25
+ console.log(sentenceList(["Bettye Norton", "Melissa Reed", "Kari Osborne"]));
26
+ // Bettye Norton, Melissa Reed, and Kari Osborne.
27
+ </script>
29
28
  ```
30
29
 
31
30
  For full API documentation, visit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pure-formatters",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "A collection of pure JS functions that return formatted data. Useful in any view engine.",
5
5
  "repository": {
6
6
  "type": "git",