-
Notifications
You must be signed in to change notification settings - Fork 16
/
deno_common.deno.txt
23 lines (16 loc) · 1.83 KB
/
deno_common.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DENO_COMMON
ALTERNATIVES ==> #See common-path-prefix
VERSION ==> #Part of Deno
#Browser compatible
std/path/common.ts #
common('PATH'_ARR[, 'SEPARATOR']) #Retrieve the common 'DIR' of all PATHs
->'PATH2' #'SEPARATOR' is guessed by default (/ or \)
#Returns:
# - empty ARR: ''
# - nothing common: '/' (absolute) or './' (relative)
#If all PATHs equal, returns it
#PATHs must all be either absolute or relative
# - otherwise return ''
#A trailing '/' is always added, except when returning ''