Commit 42d85435 authored by Sebastian's avatar Sebastian
Browse files

tonic example

parent 67083dfa
var ical = require('ical-generator'),
cal = ical({domain: 'localhost'}),
event;
// overwrite domain
cal.domain('example.com');
event = cal.createEvent({
start: new Date(new Date().getTime() + 3600000),
end: new Date(new Date().getTime() + 7200000),
summary: 'Example Event',
description: 'It works ;)',
organizer: 'Organizer\'s Name <organizer@example.com>',
url: 'http://sebbo.net/'
});
// update event's description
event.description('It still works ;)');
cal.toString();
\ No newline at end of file
......@@ -19,6 +19,7 @@
"scripts": {
"test": "grunt && istanbul cover _mocha -- -R spec --no-colors"
},
"tonicExampleFilename": "./example/example_tonic.js",
"preferGlobal": false,
"main": "./lib/index.js",
"repository": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment