FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Project/main.js at master · HowProgrammingWorks/Project · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
HowProgrammingWorks
/
Project
Public
Notifications
You must be signed in to change notification settings
Fork
10
Star
7
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Project
/
main.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (9 loc) · 274 Bytes
Breadcrumbs
Project
/
main.js
Copy path
File metadata and controls
12 lines (9 loc) · 274 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
const
lib
=
{
}
;
[
'submodule1'
,
'submodule2'
,
'submodule3'
]
.
forEach
(
(
name
)
=>
{
const
sub
=
require
(
`./lib/
${
name
}
.js`
)
;
Object
.
assign
(
lib
,
sub
)
;
}
)
;
console
.
log
(
'We combined submodules:'
)
;
console
.
log
(
Object
.
keys
(
lib
)
.
join
(
', '
)
)
;
module
.
exports
=
lib
;
Back
|
FazBrowse Home
|
New Git URL