thybag / javascript-ical-parser Goto Github PK
View Code? Open in Web Editor NEWProof of concept Javascript ical (.ics) parser
Proof of concept Javascript ical (.ics) parser
This struggled with processing the .ics from homeaway.com.
Their format is:
BEGIN:VEVENT
UID:2739f1fd-dbb7-40f8-bf3c-a23ffcc30ae2
DTSTAMP:20180625T100336Z
DTSTART;VALUE=DATE:20160124
DTEND;VALUE=DATE:20160224
SUMMARY:Reserved - Rennovations 3
END:VEVENT
I've made it work on my local copy, but being able to strip off the ;value=date
or to be able to process other value types might be useful if you do an update.
Anyway - thanks for this!
Hi,
Great job on the parser algorithm. There is a small issue in the code with regards to setting dates for DTSTART and DTEND objects. The logic is doing a comparison to the string but the string does not return a match because DTSTART & DTEND are present as a substring with other characters. It could very well be that the ics file i am using is slightly off the standard format. By using indexof instead of a perfect match comparison (==) the code worked like a charm.
OLD -
if(type == 'DTEND')
NEW -
if(type.indexOf('DTEND') != -1 ){
Thanks
Could you specify the License for this code? Because I'm not sure could I use the code in my project. Thx
Hi Carl,
Unfortunately I can't get any output when I am using Apple iCalendar's .ics file. Do you have any time check it? I know that this is an old project, but it would be good to get it to work.
Regards,
Adrian
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.