/ examples / feeds.ts
feeds.ts
 1  import { getFeeds } from "crous-mobile";
 2  
 3  const feeds = await getFeeds();
 4  
 5  for (const feed of feeds) {
 6    console.log(`${feed.name} (${feed.identifier})`);
 7  
 8    // We can call methods directly on the feed.
 9    const restaurants = await feed.getRestaurants();
10    console.log("=> found", restaurants.length, "restaurants");
11  }