
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
An abstraction layer for the GeoFS API (credit to iL0g1c)
mkdir example-dir
cd /path/to/example-dir
npm install js-geofs
The MapAPI is a way to access GeoFS's map data, which includes:
ECMAScript:
import { MapAPI } from "js-geofs";
const myAPI = new MapAPI();
CommonJS:
const geofs = require("js-geofs");
const myAPI = new geofs.MapAPI();
Parameters:
Returns: List of users as per specifications
Gets response history.
Parameters: N/A
Returns: Array of all previous results of getUsers calls
Clears responseList.
Parameters: N/A
Returns: undefined
Enables, disables, or toggles the usage of the responseList.
Parameters: N/A
Returns: undefined
The MultiplayerAPI is a way to access GeoFS's multiplayer data, which includes:
ECMAScript:
import { MultiplayerAPI } from "js-geofs";
const myAPI = new multiplayerAPI(sessionID, accountID);
CommonJS:
const geofs = require("js-geofs");
const myAPI = new multiplayerAPI(sessionID, accountID);
The accountID value can be found here and is refered to as your "user ID" on the website.
The sessionID value can be found in the console. Sign into your account here and then open the console with ctrl+shift+j.
Then, paste this code in.
const cookies = document.cookie.split(';');
const sessionIdCookie = cookies.find(cookie => cookie.trim().startsWith('PHPSESSID='));
const sessionId = sessionIdCookie ? sessionIdCookie.split('=')[1] : null;
console.log(sessionId);
This should output a session ID that is basically a random string. Next, you need to make a handshake with the server.
myAPI.handshake();
Now you are setup and can use the API freely.
Sends a specified message to GeoFS chat.
Parameters:
Returns: undefined.
Allows you to pull the most recent messages from the server.
It will only pull messages that occured, since the last time you used this command.
Parameters: N/A
Returns: Array of chat messages or null if connection was unsuccessful.
Either returns current coords or changes them.
Parameters:
coords (Array of 6 numbers), optional
co 0 latitude
co 1 longitude
co 2 altitude in meters
co 3 vertical speed in meters
last two can be 0
Returns: undefined if parameter is passed or an array of current coords if it isn't passed.
FAQs
An abstraction layer for the GeoFS API (credit to iL0g1c).
The npm package js-geofs receives a total of 80 weekly downloads. As such, js-geofs popularity was classified as not popular.
We found that js-geofs demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.