Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jules Sagot--Gentil
Flux articles console
Commits
f3e9927a
Verified
Commit
f3e9927a
authored
Feb 14, 2022
by
Jules Sagot--Gentil
Browse files
feat: npm run start affiche deux flux RSS sur la console
parent
f523be59
Pipeline
#470418246
passed with stage
in 1 minute and 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
index.ts
0 → 100644
View file @
f3e9927a
import
{
ConsoleStdout
}
from
"
./src/console
"
;
import
{
FluxRSS
}
from
"
./src/flux
"
;
const
urlsRSS
=
[
'
https://www.journalduhacker.net/rss
'
,
'
https://sagot.dev/index.xml
'
];
const
affichage
=
new
ConsoleStdout
();
urlsRSS
.
map
((
u
)
=>
new
FluxRSS
(
u
))
.
forEach
((
f
)
=>
affichage
.
ajouteFlux
(
f
));
affichage
.
afficheTousFlux
();
package.json
View file @
f3e9927a
...
...
@@ -11,6 +11,7 @@
"main"
:
"index.js"
,
"scripts"
:
{
"build"
:
"tsc"
,
"start"
:
"node dist/index.js"
,
"test"
:
"jest"
},
"author"
:
"Jules Sagot--Gentil"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment