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

diswrap.js

v1.1.4

Published

Free version of diswrap.js, a discord.js wrapper that makes discord bot coding easier

Downloads

3

Readme

Version

Installation

ProjectDelta Installation(recommended)

Since ProjectDelta is a registry built separately from NPM, but it still uses NPM for the operations, we need to register the registry to your project.

ProjectDelta is recommended because Diswrap.js is developed by developers of ProjectDelta, any errors could be fixed asap.

  // register your registry for the project
  npm set registry https://projectdelta.ml --location project

lite version does not need an account, so we can just install.

  npm install diswrap.js

NPM Installation

  npm install diswrap.js

Lite Features

  • Beginner Friendly
  • 3 Basic Information Command
  • 1 Basic event(ready)

Upgrade to pro

Please join our Discord Server to upgrade to Diswrap.js Pro versions.

Authors

  • Apple Development

API Reference

Client

  new Client(clientOptions)

| Parameter | Type | Description | | :-------- | :------- | :------------------------- | | clientOptions | object | The Client Options. |

commandsCreate

  new commandsCreate(commandName)

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | commandName | string/commandNames | Required. The name of the command. |

publishCommand

  new publishCommand(operation, command, client, guildId)

| Parameter | Type | Description | | :-------- | :------- | :------------------------- | | operation | number | Required. The id of the operation to perform - Use the SlashCommandOperations module for easier usage. | | command | Object | Required. The object containing the commands to publish - this object is defined in the object class. | | client | Object | Required. The client object of the bot. | | guildId | Object | Required when operation is 3 or 4. The guild id of the guild to publish the commands to. |

commandsManager

  new commandsManager(...args)

| Parameter | Type | Description | | :-------- | :------- | :------------------------- | | ...args | Array | A "list" of arguments inputed by the client process when an interaction is created. |

wrapperManager

  new wrapperManager(client, commands, options = {})

| Parameter | Type | Description | | :-------- | :------- | :------------------------- | | client | Object | Required. The client process of the bot. | | commands | Object | Required. An object of all the commands, used for managing the object. | | options | Object | Required. The option of the manager requested by client. |

clientOptions

| Parameter | Type | Description | | :-------- | :------- | :------------------------- | | token | string | Required. The token of the bot. | | intents | string | The intents needed by the bot. |

Changelogs

1.1.4

  • Better publishing system

1.1.3

  • Added a badge to README

1.1.2

  • Fixed README inaccuracies

1.1.1

  • Fixed README inaccuracies

1.1.0

  • Added new Class publishCommand
  • Changed file format to a cleaner form
  • Comment added for easier development
  • JSDoc added to make coding easier
  • Added the only event available for lite - ready

1.0.0

  • Initial Release

License

CC-BY-NC-ND-2.5