fv

fast-vobject

A speed vObject serializer

Showing:

Popularity

Downloads/wk

2

GitHub Stars

2

Maintenance

Last Commit

8yrs ago

Contributors

0

Package

Dependencies

2

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

fast-vobject

This is really easy to use and supports vObjects of any name through the constructor.

Coffeescript example

vobject = require 'fast-vobject'

vcalendar = new vobject.vCalendar()

for event in events
    vevent = new vobject.vEvent

    vevent.set "uid", event.hash
    vevent.set "summary", event.summary

    if event.allday
        vevent.setDate "dtstart", event.start_time, event.allday
    else
        vevent.setDate "dtstart", event.start_time
        vevent.setDate "dtend", event.end_time

    vevent.setDate "dtstamp", new Date
    vevent.setDate "created", new Date

    if event.contact?.name
        org = new vobject.vObject 'organizer'
        org.set 'cn', event.contact.name

        if event.contact?.email
            org.set 'mail', 'mailto:' + event.contact.email

        vevent.addComponent org

    vcalendar.addComponent vevent

Developers

Run ./node_modules/.bin/coffee -o lib/ src/vobject.coffee before publishing.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial