장준영

feat : levenshtein 설치 및 test

...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
14 "hangul-js": "^0.2.6", 14 "hangul-js": "^0.2.6",
15 "http-errors": "~1.6.3", 15 "http-errors": "~1.6.3",
16 "jade": "~1.11.0", 16 "jade": "~1.11.0",
17 + "js-levenshtein": "^1.1.6",
17 "morgan": "~1.9.1", 18 "morgan": "~1.9.1",
18 "mysql2": "^2.2.5" 19 "mysql2": "^2.2.5"
19 }, 20 },
......
1 +const levenshtein = require('js-levenshtein');
2 +
3 +const calcDistance = () => {
4 + const result = levenshtein('개새끼', 'ㄱHsㅐㄲ!');
5 + console.log(result);
6 +};
7 +
8 +calcDistance();
......