{"_id":"add-to-calendar-buttons","_rev":"2-6fba23af1516c7c16f3d23752d0a196e","name":"add-to-calendar-buttons","description":"A simple JS library that enables you to add an \"add to calendar\" button for your upcoming events.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"add-to-calendar-buttons","version":"1.0.0","main":"ouical.js","repository":{"type":"git","url":"git+https://github.com/benmcp/add-to-calendar-buttons.git"},"author":{"name":"Ben McPhail","email":"ben@presentcompany.co"},"license":"MIT","gitHead":"c8746f6c6276bcad254247400ff56297bba69c0c","description":"A simple JS library that enables you to add an \"add to calendar\" button for your upcoming events.","bugs":{"url":"https://github.com/benmcp/add-to-calendar-buttons/issues"},"homepage":"https://github.com/benmcp/add-to-calendar-buttons#readme","_id":"add-to-calendar-buttons@1.0.0","scripts":{},"_shasum":"af66e16e5d30f357d27ef9b074a9893b51a8f847","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.9.3","_npmUser":{"name":"benmcphail","email":"ben@benmcphail.com"},"dist":{"shasum":"af66e16e5d30f357d27ef9b074a9893b51a8f847","tarball":"https://registry.npmjs.org/add-to-calendar-buttons/-/add-to-calendar-buttons-1.0.0.tgz","integrity":"sha512-fdCnt78qjcjrRXhACxIS5j7Np4bM6pqk6FQ8oMf73/zMLyMMFvB86DZpNHKwo8bdzKkwu8PpioINtYjG3QxJuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDI97h9MUsGbALNtH5xBTo/E6wddBv7wOwXSdDCmBmAwQIgcqi8weji7umRyJ5PdDFJvRRrzaGlyffub6303XoO1XI="}]},"maintainers":[{"name":"benmcphail","email":"ben@benmcphail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/add-to-calendar-buttons-1.0.0.tgz_1510726022118_0.10989131429232657"}}},"readme":"# OuiCal\n\nA simple JS library that enables you to add an \"add to calendar\" button for your upcoming events.\n\n## Inspiration\n\nThis project was inspired by [Eventbrite's](http://www.eventbrite.com/) add to calendar feature (which should have been open sourced #justSayin).\n\n## How to use it?\n\nCall 'createCalendar' with your event info, pass in any optional parameters such as a class and/ or id and boom! Insert your add-to-calendar div wherever you'd like.\n\nThe only fields that are mandatory are:\n\n  - Event title\n  - Start time\n  - Event duration, in minutes\n\n## Example\n\n    var myCalendar = createCalendar({\n      options: {\n        class: 'my-class',\n        \n        // You can pass an ID. If you don't, one will be generated for you\n        id: 'my-id'\n      },\n      data: {\n        // Event title\n        title: 'Get on the front page of HN',\n\n        // Event start date\n        start: new Date('June 15, 2013 19:00'),\n        \n        // Event duration (IN MINUTES)\n        duration: 120,\n\n        // You can also choose to set an end time\n        // If an end time is set, this will take precedence over duration\n        end: new Date('June 15, 2013 23:00'),     \n\n        // Event Address\n        address: 'The internet',\n\n        // Event Description\n        description: 'Get on the front page of HN, then prepare for world domination.'\n      }\n    });\n\n    document.querySelector('#place-where-I-want-this-calendar').appendChild(myCalendar);\n\n[Here is a live example](http://carlsednaoui.github.io/add-to-calendar-buttons/example.html)\n\n## Looking for Instant Gratification?\n[Copy OuiCal into Chrome's JS console](https://raw.github.com/carlsednaoui/ouical/master/ouical.js) (or whatever browser you're using).\n\n\nThen call this:\n\n    document.getElementsByTagName('body')[0].appendChild(createCalendar({data:{title:\"this is the title of my event\", start: new Date(), duration: 90}}));\n\n\\#winning!\n\n## Calendar Generator\nNeed to generate an add-to-calendar widget on the fly? No problem, [go here](http://carlsednaoui.github.io/add-to-calendar-buttons/generator/generator.html).\n\n## GitHub Project Page\n[Official Project Page](http://carlsednaoui.github.io/ouical/)\n\n## License\n[MIT](http://opensource.org/licenses/MIT)\n","maintainers":[{"name":"benmcphail","email":"ben@benmcphail.com"}],"time":{"modified":"2022-06-13T02:25:35.583Z","created":"2017-11-15T06:07:02.184Z","1.0.0":"2017-11-15T06:07:02.184Z"},"homepage":"https://github.com/benmcp/add-to-calendar-buttons#readme","repository":{"type":"git","url":"git+https://github.com/benmcp/add-to-calendar-buttons.git"},"author":{"name":"Ben McPhail","email":"ben@presentcompany.co"},"bugs":{"url":"https://github.com/benmcp/add-to-calendar-buttons/issues"},"license":"MIT","readmeFilename":"README.md"}