
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@mishguru/geniuslink
Advanced tools
GeniusLink API wrapper for Node.js
npm install @mishguru/geniuslink
import { initGeniusLink, getTotalLinkClicks } from '@mishguru/geniuslink'
initGeniusLink({
key: process.env.GENIUSLINK_API_KEY,
secret: process.env.GENIUSLINK_API_SECRET,
})
getTotalLinkClicks('a1b2c3')
.then(console.log)
All of the following functions can be imported from @mishguru/geniuslink
.
This must be called to declare the API key/secret and initiate the library.
import { initGeniusLink } from '@mishguru/geniuslink'
initGeniusLink({
key: process.env.GENIUSLINK_API_KEY,
secret: process.env.GENIUSLINK_API_SECRET,
})
Create a new group
import { addGroup } from '@mishguru/geniuslink'
const groupName = 'best-links-ever'
addGroup(groupName)
.then((groupId) => {
// groupId === 33118
...
})
Create a new tracked link with a specific group
import { addLinkToGroup } from '@mishguru/geniuslink'
const url = 'https://mish.guru'
const groupId = 12345
addLinkToGroup(url, groupId)
.then((shortcode) => {
// shortcode === '0zs3at'
...
})
Get the total number of clicks on a specific link
import { getTotalLinkClicks } from '@mishguru/geniuslink'
const shortcode = 'r93n5'
getTotalLinkClicks(shortcode)
.then((count) => {
// count === 472
...
})
Get details of a group based on the group name
import { getGroupDetailsByName } from '@mishguru/geniuslink'
const name = 'default'
getGroupDetailsByName(name)
.then((group) => {
// group.id === '1234'
...
})
Get details of a group based on the group id
import { getGroupDetailsByName } from '@mishguru/geniuslink'
const id = '1234'
getGroupDetailsBId(id)
.then((group) => {
// group.name === 'default'
...
})
FAQs
> GeniusLink API wrapper for Node.js
The npm package @mishguru/geniuslink receives a total of 3 weekly downloads. As such, @mishguru/geniuslink popularity was classified as not popular.
We found that @mishguru/geniuslink demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.