stack-analyze 1.3.3 → 1.3.4
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/CHANGELOG.md +4 -0
- package/functions/potterSearch.js +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ stack-analyze all version and notable changes, fixed, remove and new additions i
|
|
|
4
4
|
|
|
5
5
|
## generation 4 (ver. 1.3.0 - )
|
|
6
6
|
|
|
7
|
+
### version 1.3.4
|
|
8
|
+
#### changed
|
|
9
|
+
- new ui cli for potter search tool & save file.
|
|
10
|
+
|
|
7
11
|
### version 1.3.3
|
|
8
12
|
#### Added
|
|
9
13
|
- add potter search (harry potter npx characters)
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
2
|
import colors from "colors";
|
|
3
|
+
import { printTable } from "console-table-printer";
|
|
4
|
+
|
|
5
|
+
// save search
|
|
6
|
+
import { stackSave } from "../utils.js";
|
|
3
7
|
|
|
4
8
|
/**
|
|
5
9
|
* @description search harry potter characters using keyword or name
|
|
@@ -20,7 +24,8 @@ export default async function potterSearch(search) {
|
|
|
20
24
|
house: hogwartsHouse,
|
|
21
25
|
}));
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
printTable(characterList);
|
|
28
|
+
stackSave("potter-results.json", JSON.stringify(characterList, null, 2));
|
|
24
29
|
} catch(err) {
|
|
25
30
|
console.error(colors.red(err.message));
|
|
26
31
|
}
|
package/package.json
CHANGED