File tree Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Original file line number Diff line number Diff line change 1
1
const { readdirSync } = require ( 'fs' ) ;
2
2
3
+ const IGNORE_DIRS = [ '.github' , '.git' ] ;
4
+ const PREPEND_PATH = process . argv [ 2 ] || './' ;
5
+ const FOLDER_TO_LANG = {
6
+ javascript : 'JS' ,
7
+ typescript : 'TS' ,
8
+ csharp : 'C#' ,
9
+ c : 'C' ,
10
+ go : 'GO' ,
11
+ java : 'Java' ,
12
+ python : 'Python' ,
13
+ ruby : 'Ruby' ,
14
+ rust : 'Rust' ,
15
+ scala : 'Scala' ,
16
+ swift : 'Swift' ,
17
+ cpp : 'C++' ,
18
+ kotlin : 'Kotlin'
19
+ } ;
20
+
3
21
const PROBLEM_LISTS = {
4
22
'NeetCode 150' : [
5
23
[ 'Contains Duplicate' , '217' ] ,
@@ -466,23 +484,6 @@ const URLS = {
466
484
} ;
467
485
delete URLS [ 'Blind 75' ] ;
468
486
469
- const IGNORE_DIRS = [ '.github' , 'rust' , '.git' ] ;
470
- const PREPEND_PATH = process . argv [ 2 ] || './' ;
471
- const FOLDER_TO_LANG = {
472
- javascript : 'JS' ,
473
- typescript : 'TS' ,
474
- csharp : 'C#' ,
475
- c : 'C' ,
476
- go : 'GO' ,
477
- java : 'Java' ,
478
- python : 'Python' ,
479
- ruby : 'Ruby' ,
480
- rust : 'Rust' ,
481
- scala : 'Scala' ,
482
- swift : 'Swift' ,
483
- cpp : 'C++' ,
484
- kotlin : 'Kotlin'
485
- } ;
486
487
487
488
const getDirectories = ( source ) =>
488
489
readdirSync ( source , { withFileTypes : true } )
You can’t perform that action at this time.
0 commit comments