Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
geofence
Advanced tools
Readme
Simple geofencing using Google or other geolocation providers's API
node cli.js --apiKey=$apiKey --destination="San Francisco, CA" --mode=driving --updateInterval=1 --fenceDurationValue=25
Install with npm:
npm install geofence --save
The current location and destination can be address or lat/long. See Google's Distance Matrix API
let options = {
// You can get it from here: https://cloud.google.com/maps-platform/
apiKey: "ENTER YOUR API HERE", // Enter your own api key
updateInterval: 5, // Update current location (in seconds)
// API function to get the current location.
// It should return a string that is an address or lat/long
// See Google's Distance Matrix API:
// https://developers.google.com/maps/documentation/distance-matrix/intro
getCurrentLocation: getCurrentLocation,
// Callback for when we are inside the fence (optional)
insideGeofenceCallBack: insideGeofenceCallBack,
// Callback function to be called whenever the
// current location and distance is updated (optional)
updateDistanceCallBack: updateDistanceCallBack,
loopForever: false, // Stop/continue once we are inside the fence
activateFenceOn: "duration", // 'duration' OR 'distance' OR 'either'
fenceDurationValue: 25 * 60, // range of the fence in seconds
fenceDistanceValue: 1000, // range of the fence in meters
};
let locationSepc = {
destination: "Oakland, CA", // Can be address or lat/long
mode: "driving" //
};
//-----------------------------------------------------------------------------
var geofence = require("geofence")(options, locationSepc);
geofence.start(options);
node cli.js --apiKey=YOUR_API_KEY --destination="San Francisco, CA"
node termux.js --apiKey=YOUR_API_KEY --destination="320 Main St, Venice, CA" --fenceDurationValue=300 --updateInterval=10
node termux_prompt.js
FAQs
Geofencing for npm
The npm package geofence receives a total of 17 weekly downloads. As such, geofence popularity was classified as not popular.
We found that geofence 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.