npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dinfo

v1.0.1

Published

This tool will scrape data from users/guilds using the discord api

Downloads

10

Readme

Functions :

Downloading Module:

npm i @sklyerx/discord-info

## Function Object Info :
</br>

code : The Server Invite Code (Just The Code)

id : The Server ID or User ID

token : Token Of Bot

token : Account Token


## Example:

```js
const dscinfo = require("@sklyerX/discord-information");

const dsc = dscinfo.Bot.userData({ token: "bot token", id: "account you want to fetch" });

console.log(dsc)

// The list below will be filled with the data of the userid you specified
// {
//   id: 'id',
//   username: 'username',
//   avatar: 'avatar',
//   avatar_decoration: value,
//   discriminator: 'discriminator',
//   public_flags: flagCount,
//   banner: 'banner',
//   banner_color: value,
//   accent_color: value
// }

Or Visit The Test File

Every usage:

const dscinfo = require("@sklyerX/discord-information");

const dsc = dscinfo.Bot.userData({ token: "bot token", id: "account you want to fetch" });

console.log(dsc)

// The list below will be filled with the data of the userid you specified
// {
//   id: 'id',
//   username: 'username',
//   avatar: 'avatar',
//   avatar_decoration: value,
//   discriminator: 'discriminator',
//   public_flags: flagCount,
//   banner: 'banner',
//   banner_color: value,
//   accent_color: value
// }
const dscinfo = require("@sklyerX/discord-information");

const dsc = dscinfo.Bot.userDataPretty(
    {
        token: "bot token",
        id: "account id"
    }
)

console.log(dsc)
// The list below will be filled with the data of the userid you specified

// id: userid

// username: username

// discriminator: discriminator

// avatar: avatar

// avatar_decoration: value

// public_flags: number

// banner: value

// banner_color: color

// accent_color: number
const dscinfo = require("@sklyerX/discord-information");

const dsc = dscinfo.Invite("inviteCode");

console.log(dsc)
// code: invitecode

// type: type

// expires_at: date

// guild_id: guildid

// guild_name: server name

// guild_icon: server icon

// guild_splash: server splash

// guild_description: server description

// guild_verification_level: level

// guild_vanity_url_code: vanity url (custom invite)

// boosts: boost count

// nsfw?: true/false

// nsfwLevel: level
const dscinfo = require("@sklyerX/discord-information");

const dsc = dscinfo.UserId.userData({ token: "account token", id: "account you want to fetch" });

console.log(dsc)

// The list below will be filled with the data of the userid you specified
// {
//   id: 'id',
//   username: 'username',
//   avatar: 'avatar',
//   avatar_decoration: value,
//   discriminator: 'discriminator',
//   public_flags: flagCount,
//   banner: 'banner',
//   banner_color: value,
//   accent_color: value
// }
const dscinfo = require("@sklyerX/discord-information");

const dsc = dscinfo.UserId.userDataPretty(
    {
        token: "account token",
        id: "account id"
    }
)

console.log(dsc)
// The list below will be filled with the data of the userid you specified

// id: userid

// username: username

// discriminator: discriminator

// avatar: avatar

// avatar_decoration: value

// public_flags: number

// banner: value

// banner_color: color

// accent_color: number
const dscinfo = require("@sklyerX/discord-information");

const dsc = dscinfo.UserToken.user({ token: "accaount token" });

console.log(dsc)
// The list below will be filled with the data of the userid you specified
//         Safe Zone
// ------------------------

//id: userid

//username: username

//avatar: avatar

//avatar_decoration: avatar_decoration

//discriminator (#tag): tag

//public_flags: number

//flags: number

//purchased_flags: number

//banner: value

//banner_color: color

//accent_color: number

//bio: text

//pronouns: text



//Danger Zone
// -----------------------------
//locale: text

//nsfw_allowed: true/false

//mfa_enabled: true/false

//email: email

//verified: true/false

//phone: number
const dscinfo = require("@sklyerX/discord-information");

const dsc = dscinfo.UserToken.userGuild({ token: "accaount token" });

console.log(dsc)
//             id: 925326431532245042

//             name: Kitty Crypto Gang

//             icon: a74e7f82359503ed798a0619e744f862

//             owner: false

//             permissions: 2251377216

//             features: 277 - COMMUNITY
// ,278 - INVITE_SPLASH
// ,279 - SEVEN_DAY_THREAD_ARCHIVE
// ,280 - ANIMATED_ICON
// ,281 - NEWS
// ,282 - VANITY_URL
// ,283 - ANIMATED_BANNER
// ,284 - THREE_DAY_THREAD_ARCHIVE
// ,285 - ROLE_ICONS
// ,286 - MEMBER_PROFILES
// ,287 - BANNER
// ,288 - PRIVATE_THREADS

//             id: 923670412943044631

//             name: Squiggles

//             icon: 469b823b45c832422534c36f97a1d963

//             owner: false

//             permissions: 968619314753

//             features: 265 - COMMUNITY
// ,266 - INVITE_SPLASH
// ,267 - SEVEN_DAY_THREAD_ARCHIVE
// ,268 - ANIMATED_ICON
// ,269 - NEWS
// ,270 - VANITY_URL
// ,271 - ANIMATED_BANNER
// ,272 - THREE_DAY_THREAD_ARCHIVE
// ,273 - ROLE_ICONS
// ,274 - MEMBER_PROFILES
// ,275 - BANNER
// ,276 - PRIVATE_THREADS

📊 Repo Stats

🤝 Contributing

  1. Fork the repository
  2. Clone your fork: git clone https://github.com/your-username/discord-info.git
  3. Create your feature branch: git checkout -b my-new-feature
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request

🌟 Spread the word!!

If you want to say thank you and/or support active development of the repo:

  • Add a GitHub Star to the project!
  • Follow my profile SklyerX

Thanks so much for your interest in growing the reach of the repo!

⚠️ License

This repo is free and open-source software licensed under the MIT General Public License v3.0. All designs were created by SklyerX.