Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const ical = require('ical');
- ical.fromURL('/url/to/some.ics', null, function(err, data){
- console.log(data);
- const results = Object.keys(data).map( hash => {
- const e = data[hash];
- if(e.rrule) console.log(e.rrule);
- return {
- title: e.summary,
- start: e.start,
- end: e.end,
- location: e.location,
- description: e.description
- };
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement