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.
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 1 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 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.