Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@culturehq/add-to-calendar
Advanced tools
A small package for adding an event to a calendar.
First, add @culturehq/add-to-calendar
to your package.json
dependencies
, then install using either npm install
or yarn install
. Next, you can add the component through:
<AddToCalendar
event={{
name: "Happy Hour",
details: "Let's go after work",
location: "Boston, MA",
startsAt: "2018-12-06T17:00:00-05:00",
endsAt: "2018-12-06T18:00:00-05:00"
}}
/>
To get the styles, be sure it import @culturehq/add-to-calendar/dist/styles.css
into your application. You can style it appropriately for your app by overriding the CSS classes used internally. They are listed in styles.css
.
children
The label for the button that triggers the dropdown. Defaults to "Add to My Calendar"
.
event
Should be an object representing the event to be added to the various calendars. The keys are:
name
- the name of the eventdetails
- the details of the eventlocation
- the location of the eventstartsAt
- the start time of the event, formatted as an ISO stringendsAt
- the end time of the event, formatted as an ISO stringopen
Defaults to false
. Whether or not the dropdown should start open. (Will be ignored after initial render.)
filename
Used to specify the name of the downloaded iCalendar file (where applicable - Apple Calendar, Outlook). Defaults to "download"
.
You can run the tests by running yarn test
and lint by running yarn lint
. You can run the local server by running yarn start
which will start the docs server on http://localhost:8080
.
Bug reports and pull requests are welcome on GitHub at https://github.com/CultureHQ/add-to-calendar.
The code is available as open source under the terms of the MIT License.
[1.1.1] - 2020-10-18
FAQs
A small package for adding an event to a calendar.
The npm package @culturehq/add-to-calendar receives a total of 696 weekly downloads. As such, @culturehq/add-to-calendar popularity was classified as not popular.
We found that @culturehq/add-to-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.