{"_id":"@barinbritva/event-link-generator","_rev":"1-045f6d72a705b42ca02778eaac21125e","name":"@barinbritva/event-link-generator","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@barinbritva/event-link-generator","version":"0.1.0","main":"./dist/index.js","types":"./dist/__types__","engines":{"node":">=12.10.0"},"engineStrict":true,"scripts":{"build":"ts-node ./tasks/run-build.ts","build:dev":"ts-node --project ./tsconfig-dev.json ./tasks/run-build.ts -d","test":"echo \"Error: no test specified\" && exit 1","release":"ts-node ./tasks/run-release.ts","typedoc":"typedoc --out docs src/index.ts"},"author":{"name":"Barin Britva","email":"barinbritva@outlook.com","url":"https://barinbritva.ru"},"license":"MIT","devDependencies":{"@types/node":"^14.14.31","ts-node":"^9.1.1","typedoc":"^0.21.2","typescript":"^4.3.2"},"gitHead":"d0dd1dfa0e972b98e08856f97958be1ff603abad","description":"[![Dependencies counter](https://img.shields.io/badge/dependencies-none-green?style=flat-square)](https://github.com/barinbritva/event-link-generator/blob/master/package.json) [![License](https://img.shields.io/npm/l/micromatch?style=flat-square)](https:/","_id":"@barinbritva/event-link-generator@0.1.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.12","dist":{"integrity":"sha512-T/fvl0hTTKkNHasIGDTq15iUoorCFeGpyly8iPDz7GwG0KX/Pa8xEo6XJUpl9YaQoqsTLqCH67ePVn/9cStNPQ==","shasum":"6ee357882def0cda752006f17751663d13bc5272","tarball":"https://registry.npmjs.org/@barinbritva/event-link-generator/-/event-link-generator-0.1.0.tgz","fileCount":29,"unpackedSize":28859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5zHXCRA9TVsSAnZWagAAfsIP/3EoE1MkHd7rgAGfrx7W\nMkh0n2/TNu1qPBEgGNmiZ+FaP8j2X8SGsgZtcAQSpY5t1zOko+El5kGVsoqg\nQmE8Hf17FMDYf3D6ffB6SeH+73v+msSNX9iEQfbYMRoGcGmlpgiTlrk1i0rX\nu6kox9NX7um3mjOMv2efOjAS6XQMsmPocrd6anka5F5I+iFEmTPM5hWJoNWB\nqQsU7dFNNz1ce+Aq2QT0834U1m4OWfjDFsZMR8UHQmPx1ytZFQEJKcSWmGrl\n2mQ1xxZvId0ahdYuQSDMy5jbgfV6kbKR1VJd1ZwRo3nZKu6kXivDq3wjeX1Y\notLG9LSCnmlX8RE6QH1KVMNcOPmAjX+rIXm5/FwX1GN5kTq8OxfOzffs9fIm\n4IXPNI9o0dC1ZqlJQuAxFNmKS/D8ZazE7O50k/fqmyRV7kZajM59bROb48O3\nz4aTy3BVyyuchkWeNTIaJKi0XakddNh49ov/TPr1Ah4QRZyG6UKlv5f6ZXt4\nCfTiBZqM//V71u2gTk5gLRTHMrSPlPKXwqxCa+LMsrhPfbKmSRluDB03vY6F\nIZ7jmrjUxDUBY4vYCaS7I6qvyOLWXX4cGFW6UyXf5O0SGylY3vNJDE2n5tsl\n5geRfOOU8LuKmz14mPFab2VIn3lL768pr5Na7i6tc8qarwVri0h5qyaeX8YG\n9ikr\r\n=jE7N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBmjWf0CKY7cZbOi7I62JomUfB33ZvAqHP86ouICA5MEAiBfB9Ut7QZ+CEHcRApI2c9a2mbEcrzvFAJ2odSGPg6lOg=="}]},"_npmUser":{"name":"barinbritva","email":"barinbritva@outlook.com"},"directories":{},"maintainers":[{"name":"barinbritva","email":"barinbritva@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/event-link-generator_0.1.0_1625764311050_0.9926261453904746"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-08T17:11:50.972Z","0.1.0":"2021-07-08T17:11:51.212Z","modified":"2022-04-04T17:44:05.043Z"},"maintainers":[{"name":"barinbritva","email":"barinbritva@outlook.com"}],"description":"[![Dependencies counter](https://img.shields.io/badge/dependencies-none-green?style=flat-square)](https://github.com/barinbritva/event-link-generator/blob/master/package.json) [![License](https://img.shields.io/npm/l/micromatch?style=flat-square)](https:/","author":{"name":"Barin Britva","email":"barinbritva@outlook.com","url":"https://barinbritva.ru"},"license":"MIT","readme":"# 📅 Event Link Generator\n\n[![Dependencies counter](https://img.shields.io/badge/dependencies-none-green?style=flat-square)](https://github.com/barinbritva/event-link-generator/blob/master/package.json)\n[![License](https://img.shields.io/npm/l/micromatch?style=flat-square)](https://github.com/barinbritva/event-link-generator/blob/master/LICENSE)\n\nGenerate event links to add them to a calendar.\n\nSupported services: `Outlook`, `Office365`, `Google` and `Yahoo`. You are also able to use `ICalendar` to create downloadable links to `ics` files.\n\n## 🚀 Getting started\n\nInstall package:\n```bash\nnpm install --save @barinbritva/event-link-generator\n```\n\nImport entities:\n```typescript\nimport {Event, Outlook, Google, MultiGenerator} from '@barinbritva/event-link-generator'\n```\n\nCreate an event:\n```typescript\nconst event = new Event(\n  'Meet with friends',\n  new Date(2021, 5, 18, 15, 00),\n  new Date(2021, 5, 18, 17, 00),\n  'It\\'s Bill\\'s birthday today!',\n  'Blue Bottle Coffee, 300 S Broadway, Los Angeles'\n)\n```\n\nCreate link by link:\n```typescript\nconst outlookLink = new Outlook().createLink(event)\nconst googleLink = new Google().createLink(event)\n\nconsole.log(outlookLink, googleLink)\n```\n\nCreate a bunch of links:\n```typescript\n// Create generators you are going to use\n// Key names doesn't matter, it's up to you\nconst generators = {\n  outlook: new Outlook(),\n  office365: new Office365(),\n  google: new Google(),\n  yahoo: new Yahoo(),\n  ics: new ICalendar()\n}\n\nconst multiGenerator = new MultiGenerator(generators);\n\n// Object of keys/values - key => link\nconst linksObject = multiGenerator.createLinks(event)\n// Array (tuple) of pairs key/link - [key, link][]\nconst array = multiGenerator.createLinks(event, true)\n```\n\n## 🐛 Wellknown issues\n\n* __Yahoo does not work properly with UTC timezone__. Currently looking if there are any workarounds.\n\n## 💡 Guides\n\n* [`Event` API](https://barinbritva.github.io/event-link-generator/classes/event.html). Read how to create and manage events.\n* `Date` creation. Avoiding troubles with time zones. _(Coming soon)_\n\n## 🔙 Feedback\nYour feedback is really important for the project. Please, use contacts from my profile to send your questions, suggestions, help requests and others. Also, feel free to use issues section to report bugs and problems.\n\n## 🌟 Credits\n\n* Special thanks for information about calendar APIs to [add-event-to-calendar-docs](https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs) repo.\n* The project is bootstrapped using [init-typescript-app](https://github.com/barinbritva/init-typescript-app).\n\n---\n\nMIT, see [LICENSE](https://github.com/barinbritva/event-link-generator/blob/master/LICENSE) for the details.\n","readmeFilename":"README.md"}