Skip to content

Commit

Permalink
tonic example
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Jan 24, 2016
1 parent 67083df commit 42d8543
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions example/example_tonic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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 <[email protected]>',
url: 'http://sebbo.net/'
});

// update event's description
event.description('It still works ;)');

cal.toString();
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 42d8543

Please sign in to comment.