# share-event

> A lightweight, dependency free plugin for sharing your events.

Latest version **1.0.2** (published 2019-07-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install share-event
pnpm add share-event
yarn add share-event
bun add share-event
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-07-29 |
| First published | 2019-07-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Santiago Hernández |
| Maintainers | hsantiago |

## Links

- npm: https://www.npmjs.com/package/share-event
- Repository: https://github.com/SantiagoH1997/share-event
- Homepage: https://github.com/SantiagoH1997/share-event#readme
- Issues: https://github.com/SantiagoH1997/share-event/issues
- npm.io page: https://npm.io/package/share-event

## Recent versions

- 1.0.2 (latest) — 2019-07-29
- 1.0.1 — 2019-07-29
- 1.0.0 — 2019-07-29

## README

# Share-Event

Share-Event is a lightweight no-dependency Javascript plugin to share your events, supporting Outlook (online and desktop), iCalendar, Google, and Yahoo calendars.

## Installation

Just download shareEvent.js (optionally shareEvent.css)🐣

## Usage

You need to have an element with a data-share-event="share-event" attribute. This will be your container.  
Inside, place a button with a data-share-event="btn-toggle" attribute and a <ul data-share-event="options"></ul> holding <a> tags with a data-share-event attribute. The value for each of these should be your desired calendar option.

```html

    <article data-share-event="share-event">
      <button data-share-event="btn-toggle">Share Event</button>
      <ul data-share-event="options" aria-expanded="false">
        <a href="#" data-share-event="google"> </a>
        <a href="#" data-share-event="outlook-online"> </a>
        <a href="#" data-share-event="outlook"> </a>
        <a href="#" data-share-event="icalendar"> </a>
        <a href="#" data-share-event="yahoo"> </a>
      </ul>
    </article>
    <script type="text/javascript" src="shareEvent.js"></script>
  </body>
  <script>
    window.addEventListener("DOMContentLoaded", function() {
      var event = {
        title: "Test event",
        description: "This is a random test event",
        start: new Date("March 9, 2020 15:00"),
        end: new Date("March 9, 2020 17:00"),
        location: "Random street 947"
      };
      shareEvent.init(event);
    });
  </script>
</html>
```

## License

[ISC](https://choosealicense.com/licenses/isc/)

---
_Source: https://npm.io/package/share-event · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
