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.
Readme
https://calculamatrise.github.io/frhd/api/docs/
import frhd, { Client } from "frhd";
const client = new Client(); // or new frhd.Client()
client.on("ready", function() {
console.log("Ready!");
});
client.on("commentMention", function(data) {
console.log(data);
});
client.login("TOKEN");
Expected Output:
{
track: {
id: 1001,
url: '1001-wild-west',
title: 'Wild West'
},
user: {
id: 0000000,
username: 'guest',
displayNname: 'Guest',
avatar: 'https://www.freeriderhd.com/u/guest/pic?size=50'
},
comment: {
id: 0000000,
message: '<a href="https://www.freeriderhd.com/u/guest">Guest</a> Hello World!',
time: 'just now',
deletable: false,
flagged: false
},
timeAgo: 'just now',
timestamp: 1628538002
}
import frhd, { Track } from "frhd";
const track = new Track(); // or new frhd.Track()
track.beginPath();
track.moveTo(-40, 50);
track.lineTo(40, 50);
track.closePath();
console.log(track.code);
Expected Output:
"-18 1i 18 1i##"
This api requests data from Free Rider HD
Example 1 - Getting User Info:
import frhd, { getUser } from "frhd";
getUser("Guest", /* Callback Option */ data => console.log(data)).then(data => console.log(data)); // or frhd.getUser(...)
Expected Output:
{
id: 0000000,
username: 'guest',
displayName: 'Guest',
avatar: 'https://secure.gravatar.com/avatar/16f000fecd4582f8aa6f424b2d9789c9/?s=100&d=mm&r=pg',
classic: false,
admin: false,
plus: false,
cosmetics: { head: [Object] },
stats: {
u_id: 0000000,
tot_pts: 2,
cmpltd: 1,
rtd: 0,
cmmnts: 0,
crtd: 0,
head_cnt: 1,
total_head_cnt: 200
},
bio: null,
mobileStats: { lvl: '--', wins: '--', headCount: '--', connected: '1' },
verifiedEmail: false,
recentlyPlayed: [ [Object] ],
recentlyGhosted: [ [Object] ],
createdTracks: [ [Object] ],
likedTracks: [ [Object] ],
friendCount: 0,
friends: [],
friendRequestCount: 0,
friendRequests: [],
friendLimitReached: false,
subscriberCount: false
}
Example 2 - Getting Track Data:
import frhd, { getTrack } from "frhd";
getTrack(1001, /* Callback Option */ data => console.log(data)).then(data => console.log(data)); // or frhd.getTrack(...)
Expected Output:
{
id: 1001,
title: 'Wild West',
descr: 'Wild West is a Free Rider community classic track by weewam.',
slug: '1001-wild-west',
u_id: 1001,
author: {
id: 1001,
username: 'weewam',
displayName: 'weewam',
avatar: 'https://cdn.freeriderhd.com/free_rider_hd/sprites/guest_profile_v2.png'
},
vehicle: 'MTB',
cdn: 'https://cdn.freeriderhd.com/free_rider_hd/tracks/prd/b/8c/1001/track-data-v1.js',
uploadDate: '11/19/13',
thumbnail: 'https://cdn.freeriderhd.com/free_rider_hd/tracks/prd/b/8c/1001/250x150-v5.png',
size: 66,
vehicles: [ 'BMX', 'MTB' ],
uploadDateAgo: '7 years ago',
featured: false,
hidden: 0,
stats: {
likes: 223,
dislikes: 62,
votes: 285,
likesAverage: 78,
plays: '36.0k',
runs: 371,
firstRuns: 163,
averageTime: '0:33.97',
completionRate: 0.03
},
comments: [
[Object],
[Object],
[Object],
[Object]
],
isCampaign: false,
daily: { gems: 500, lives: 30, refillCost: 10, entries: [] },
game_settings: {
user: { d_name: 'Guest', u_id: false, cosmetics: [Object], guest: true },
showHelpControls: true,
isCampaign: false,
track: {
id: 1001,
title: 'Wild West',
descr: 'Wild West is a Free Rider community classic track by weewam.',
url: '1001-wild-west',
vehicle: 'MTB',
vehicles: [Array],
size: 65606,
cdn: 'https://cdn.freeriderhd.com/free_rider_hd/tracks/prd/b/8c/1001/track-data-v1.js',
pwrups: [Object],
u_id: 1001,
author_is_user: true,
u_url: 'weewam',
author: 'weewam',
img: 'https://cdn.freeriderhd.com/free_rider_hd/tracks/prd/b/8c/1001/250x150-v5.png',
ft_ts: 0,
featured: false,
p_ts: 1384895497,
hide: 0,
admin: false
},
userTrackStats: false,
campaignData: false,
trackUploadCost: 25,
raceUids: [],
raceData: false,
soundsEnabled: true,
bestGhostEnabled: false,
requireTrackVerification: true
}
}
FAQs
An app to communicacte with FRHD
The npm package frjs receives a total of 0 weekly downloads. As such, frjs popularity was classified as not popular.
We found that frjs 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.