Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A helper library that fetches and parses a public Google Calendar using the Google API v3.
This package requires jQuery to exist in the global namespace as
$
, hopefully future versions will decouple this dependency, pull requests welcome.
bower install calendarth --save
You can access Calendarth using the globally available variable calendarth
or as a browserify module. Here's how you can get a new Calendarth instance by invoking the global:
var calendarth = window.calendarth({
calendarId: 'xxx',
appId: 'xxx',
});
Look into the
build/
folder for available modular and global exposing builds.
When initializing a new Calendarth Object you may pass the following options:
calendarId
Type: string
required The Calendar's Id, looks like this: djasldj23ljd23dj23ldj2%40group.calendar.google.com
appId
Type: string
required The Google API app id.maxResults
Type: number
Default: 20 Maximum results to fetch.Fetches the entries of the calendar. Accepts a node style callback:
var cal = calendarth();
cal.fetch(function(err, calendarObj) {
err === null; // true
typeof calendarObj === 'object'; // true
});
The returned Object is the raw Data Object as passed from the Google Calendar Api v3, you can view a beautified object in this wiki page.
Will return a url that can be used to add the event to a user's Google Calendar.
cal.fetch(function(err, calendarObj) {
err === null; // true
// get the first event item
var eventItem = calendarObj.item.shift();
var addEventToCal = cal.getEventUrl(eventItem);
console.log(addEventToCal);
});
Copyright 2013 Thanasis Polychronakis
Licensed under the MIT License
FAQs
Fetch a public Google Calendar using AJAX
The npm package calendarth receives a total of 0 weekly downloads. As such, calendarth popularity was classified as not popular.
We found that calendarth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.