Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. const ical = require('ical');
  2.  
  3. ical.fromURL('/url/to/some.ics', null, function(err, data){
  4. console.log(data);
  5.  
  6. const results = Object.keys(data).map( hash => {
  7. const e = data[hash];
  8. if(e.rrule) console.log(e.rrule);
  9. return {
  10. title: e.summary,
  11. start: e.start,
  12. end: e.end,
  13. location: e.location,
  14. description: e.description
  15. };
  16. });
  17.  
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement