Verified Commit f3e9927a authored by Jules Sagot--Gentil's avatar 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
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();
......@@ -11,6 +11,7 @@
"main": "index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"test": "jest"
},
"author": "Jules Sagot--Gentil",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment