Showing
3 changed files
with
64 additions
and
1 deletions
... | @@ -28,6 +28,14 @@ var method_action = 0; // typing count; | ... | @@ -28,6 +28,14 @@ var method_action = 0; // typing count; |
28 | var user_info = new Array(); // 유저 정보 저장용 | 28 | var user_info = new Array(); // 유저 정보 저장용 |
29 | //------------------------------------------ | 29 | //------------------------------------------ |
30 | 30 | ||
31 | +//----------------low db----------------------------------- | ||
32 | +const low = require('lowdb'); | ||
33 | +const FileSync = require('lowdb/adapters/FileSync') | ||
34 | +const adapter = new FileSync('db.json'); | ||
35 | +const db = low(adapter); | ||
36 | +const shortid = require('shortid'); | ||
37 | +//--------------------------------------------------------- | ||
38 | + | ||
31 | const fs = require('fs'); | 39 | const fs = require('fs'); |
32 | const path = require('path'); | 40 | const path = require('path'); |
33 | const HTTPS = require('https'); | 41 | const HTTPS = require('https'); | ... | ... |
... | @@ -143,6 +143,11 @@ | ... | @@ -143,6 +143,11 @@ |
143 | "path-is-absolute": "^1.0.0" | 143 | "path-is-absolute": "^1.0.0" |
144 | } | 144 | } |
145 | }, | 145 | }, |
146 | + "graceful-fs": { | ||
147 | + "version": "4.2.4", | ||
148 | + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", | ||
149 | + "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" | ||
150 | + }, | ||
146 | "https-proxy-agent": { | 151 | "https-proxy-agent": { |
147 | "version": "4.0.0", | 152 | "version": "4.0.0", |
148 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz", | 153 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz", |
... | @@ -171,6 +176,28 @@ | ... | @@ -171,6 +176,28 @@ |
171 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", | 176 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", |
172 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" | 177 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" |
173 | }, | 178 | }, |
179 | + "is-promise": { | ||
180 | + "version": "2.2.2", | ||
181 | + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", | ||
182 | + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==" | ||
183 | + }, | ||
184 | + "lodash": { | ||
185 | + "version": "4.17.15", | ||
186 | + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", | ||
187 | + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" | ||
188 | + }, | ||
189 | + "lowdb": { | ||
190 | + "version": "1.0.0", | ||
191 | + "resolved": "https://registry.npmjs.org/lowdb/-/lowdb-1.0.0.tgz", | ||
192 | + "integrity": "sha512-2+x8esE/Wb9SQ1F9IHaYWfsC9FIecLOPrK4g17FGEayjUWH172H6nwicRovGvSE2CPZouc2MCIqCI7h9d+GftQ==", | ||
193 | + "requires": { | ||
194 | + "graceful-fs": "^4.1.3", | ||
195 | + "is-promise": "^2.1.0", | ||
196 | + "lodash": "4", | ||
197 | + "pify": "^3.0.0", | ||
198 | + "steno": "^0.4.1" | ||
199 | + } | ||
200 | + }, | ||
174 | "mime": { | 201 | "mime": { |
175 | "version": "2.4.6", | 202 | "version": "2.4.6", |
176 | "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz", | 203 | "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz", |
... | @@ -194,6 +221,11 @@ | ... | @@ -194,6 +221,11 @@ |
194 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", | 221 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", |
195 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" | 222 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" |
196 | }, | 223 | }, |
224 | + "nanoid": { | ||
225 | + "version": "2.1.11", | ||
226 | + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-2.1.11.tgz", | ||
227 | + "integrity": "sha512-s/snB+WGm6uwi0WjsZdaVcuf3KJXlfGl2LcxgwkEwJF0D/BWzVWAZW/XY4bFaiR7s0Jk3FPvlnepg1H1b1UwlA==" | ||
228 | + }, | ||
197 | "once": { | 229 | "once": { |
198 | "version": "1.4.0", | 230 | "version": "1.4.0", |
199 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", | 231 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", |
... | @@ -212,6 +244,11 @@ | ... | @@ -212,6 +244,11 @@ |
212 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", | 244 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", |
213 | "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" | 245 | "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" |
214 | }, | 246 | }, |
247 | + "pify": { | ||
248 | + "version": "3.0.0", | ||
249 | + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", | ||
250 | + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" | ||
251 | + }, | ||
215 | "progress": { | 252 | "progress": { |
216 | "version": "2.0.3", | 253 | "version": "2.0.3", |
217 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", | 254 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", |
... | @@ -276,6 +313,22 @@ | ... | @@ -276,6 +313,22 @@ |
276 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", | 313 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", |
277 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" | 314 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" |
278 | }, | 315 | }, |
316 | + "shortid": { | ||
317 | + "version": "2.2.15", | ||
318 | + "resolved": "https://registry.npmjs.org/shortid/-/shortid-2.2.15.tgz", | ||
319 | + "integrity": "sha512-5EaCy2mx2Jgc/Fdn9uuDuNIIfWBpzY4XIlhoqtXF6qsf+/+SGZ+FxDdX/ZsMZiWupIWNqAEmiNY4RC+LSmCeOw==", | ||
320 | + "requires": { | ||
321 | + "nanoid": "^2.1.0" | ||
322 | + } | ||
323 | + }, | ||
324 | + "steno": { | ||
325 | + "version": "0.4.4", | ||
326 | + "resolved": "https://registry.npmjs.org/steno/-/steno-0.4.4.tgz", | ||
327 | + "integrity": "sha1-BxEFvfwobmYVwEA8J+nXtdy4Vcs=", | ||
328 | + "requires": { | ||
329 | + "graceful-fs": "^4.1.3" | ||
330 | + } | ||
331 | + }, | ||
279 | "string_decoder": { | 332 | "string_decoder": { |
280 | "version": "1.3.0", | 333 | "version": "1.3.0", |
281 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", | 334 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", | ... | ... |
... | @@ -13,7 +13,9 @@ | ... | @@ -13,7 +13,9 @@ |
13 | "author": "", | 13 | "author": "", |
14 | "license": "ISC", | 14 | "license": "ISC", |
15 | "dependencies": { | 15 | "dependencies": { |
16 | + "lowdb": "^1.0.0", | ||
16 | "puppeteer": "^3.3.0", | 17 | "puppeteer": "^3.3.0", |
17 | - "readline": "^1.3.0" | 18 | + "readline": "^1.3.0", |
19 | + "shortid": "^2.2.15" | ||
18 | } | 20 | } |
19 | } | 21 | } | ... | ... |
-
Please register or login to post a comment