UNPKG
@modyo/widget
Version:
latest (1.3.0)
1.3.0
1.0.4
1.0.3
1.0.2
1.0.1
is a widget boilerplater
@modyo/widget
/
src
/
helpers
/
widgetList.js
8 lines
(6 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
path
from
'path'
import
{ ls }
from
'./fs-helpers.js'
export
default
({ widgetCategory, tempGitPath }) => {
const
list =
ls
(path.
resolve
(tempGitPath, widgetCategory))
return
list.
filter
(
(
element
) =>
!element.
match
(
/\./
)) }