words-global 1.0.2 → 1.0.3
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 +7 -1
- package/index.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,8 +8,14 @@ The first approach is simpler and keeps the markdown syntax.
|
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```bash
|
|
12
|
+
npm install words-global
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**JavaScript code**:
|
|
16
|
+
|
|
11
17
|
```JavaScript
|
|
12
|
-
import { Alphabet } from "
|
|
18
|
+
import { Alphabet } from "words-global";
|
|
13
19
|
|
|
14
20
|
const alphabet = new Alphabet("english");
|
|
15
21
|
console.log(alphabet.getLetters());
|
package/index.js
CHANGED
|
@@ -5,7 +5,12 @@ import { russianAlphabet } from "./languages/russian.js";
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The main class export
|
|
8
|
-
* @param language - The specified value will determine the returned
|
|
8
|
+
* @param language - The specified value will determine the alphabet that will be returned
|
|
9
|
+
* @returns The letters of the specified alphabet
|
|
10
|
+
* @example
|
|
11
|
+
* import { Alphabet } from "words-global";
|
|
12
|
+
* const alphabet = new Alphabet("english");
|
|
13
|
+
* console.log(alphabet.getLetters()); // Outputs the English alphabet letters
|
|
9
14
|
*/
|
|
10
15
|
export class Alphabet {
|
|
11
16
|
constructor(language) {
|