
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
add-to-calendar-button
Advanced tools
A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.
A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.
This is for everybody, who wants to include a button at his/her website or app, which enables users to easily add a specific event to their calendars. It's main goal is to keep this process as easy as possible. Simply define your button configuration via JSON and everything else is automatically generated by the script. It is for this simple use case. No strings attached.
While building a personal wedding page, I was confronted with the task to include a button, where invited people could save the event to their calenders. I did not want to build this from scratch (first) and therefore started the usual web research. Unfortunately, all I found where some extremely outdated code snippets, which did not really fit all the modern systems and calendar tools. Beside that, there was only the solution by AddEvent.com - all over the place. I was looking at CodePen and all I found where thousands of pens, which basically only included the AddEvent tool. The problems with AddEvent.com:
See jekuer.github.io/add-to-calendar-button for a live demo.
npm install add-tocalendar-button
.A button can be easily created by placing a respective placeholder, wherever you want the button to appear.
<div class="atcb">
(...)
</div>
Within this placeholder, you can easily configure the button, by placing a respective JSON structure.
<div class="atcb">
{
"title":"Add the title of your event",
"dateStart":"02-21-2022",
"dateEnd":"03-24-2022",
"options":[
"Google"
]
}
</div>
<div class="atcb">
{
"label":"Add to Calendar",
"title":"Add the title of your event",
"description":"A nice description does not hurt",
"dateStart":"02-21-2022",
"dateEnd":"03-24-2022",
"timeStart":"10:13",
"timeEnd":"17:57",
"location":"Somewhere over the rainbow",
"options":[
"Apple",
"Google",
"iCal",
"Microsoft365",
"Outlook.com",
"Yahoo"
],
"timeZone":"Europe/Berlin",
"timeZoneOffset":"+01:00",
"trigger":"click",
"iCalFileName":"Reminder-Event"
}
</div>
Anyone is welcome to contribute, but mind the guidelines:
The code is available under the GPU 3.0 license.
v1.0.0 : initial release
FAQs
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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.