Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010760
list-collections.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
469 B
Referenced Files
None
Subscribers
None
list-collections.ts
View Options
import
_locreq
from
"locreq"
;
import
{
walkDir
}
from
"./walk"
;
const
target_locreq
=
_locreq
(
process
.
cwd
());
export
async
function
listCollections
()
:
Promise
<
string
[]
>
{
const
files
=
await
walkDir
(
target_locreq
.
resolve
(
"src/back/collections"
));
return
files
.
filter
(
(
f
)
=>
f
.
endsWith
(
".ts"
)
&&
!
f
.
endsWith
(
".test.ts"
)
&&
!
f
.
endsWith
(
"collections.ts"
)
)
.
map
((
f
)
=>
f
.
replace
(
/.ts$/
,
""
).
split
(
"/"
).
at
(
-
1
)
||
""
)
.
filter
((
e
)
=>
e
!==
""
);
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:47 (22 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
625700
Default Alt Text
list-collections.ts (469 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment