quote-observer 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.
Files changed (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * @Author: kael
5
5
  * @Date: 2020-08-05 11:04:09
6
6
  * @Last Modified by: kael
7
- * @Last Modified time: 2020-11-11 10:31:24
7
+ * @Last Modified time: 2021-11-29 15:14:17
8
8
  */
9
9
 
10
10
  global.MARKET = {};
@@ -23,8 +23,10 @@ program
23
23
  program.parse(process.argv);
24
24
  global.config.args = program.opts();
25
25
 
26
+ // https://stackoverflow.com/questions/62499125/how-to-clear-terminal-and-scroll-back-in-nodejs
26
27
  console.reset = function () {
27
- return process.stdout.write('\033c\n');
28
+ process.stdout.write('\u001b[3J\u001b[1J');
29
+ console.clear();
28
30
  };
29
31
 
30
32
  cmd.ma();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quote-observer",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "quote observer",
5
5
  "main": "index.js",
6
6
  "scripts": {