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

button-paginator12

v1.2.0

Published

An easy way to paginate any embed with no difficult Coding! Designed for [email protected] with discord-buttons package

Downloads

10

Readme

Button Paginator

For [email protected]

Button Paginator is a easy to use package for pagination of any number of embeds! Using [email protected] and discord-buttons

Pagination means that you can browse through embeds as if it was a book!

You can easily use arrow buttons to swap pages between embeds

Custom TEXT, EMOJI, and COLOR is possible too!

How to use

const paginator = require('button-paginator12') //Defining the package
const discord = require('discord.js') //Defining Discord.js (12.5.3)

module.exports.run = async (Client, message) => { //use your own handler type here

//Code for Embed in Page 1
const embed1 = new discord.MessageEmbed()
.setTitle("This is Page 1")
.setDescription("This is the description for the embed for Page 1")

//Code for Embed in Page 2
const embed2 = new discord.MessageEmbed()
.setTitle("This is Page 2")
.setDescription("This is the description for the embed for Page 2")

//Merge the pages 
let pages = [embed1, embed2]  

//Send the message
paginator(message, pages)

}

YES ITS SO EASY!

Images of it in use!

Page 1 Page 2 Expired



Expert Side - How to change button Label, Style, Emoji, and change Expire Timeout

Warning! You will have to modify the module itself

  1. Open the module in node_modules/button-paginator12/index.js
  2. Follow the steps below to change the data

1) Go to Line39 for Left Button's text!

You can change details such as STYLE, LABEL and EMOJI only! Please do not change the ID, or else it wont work.

If you change the ID then please reset!

2) Go to Line40 for Right Button's text!

You can change details such as STYLE, LABEL and EMOJI only! Please do not change the ID, or else it wont work.

If you change the ID then please reset!

3) Go to Line42 for Left Button's TIMEOUT DISABLED text!

You can change details such as STYLE, LABEL and EMOJI only! Please do not change the ID, or else it wont work.

If you change the ID then please reset!

4) Go to Line43 for Right Button's TIMEOUT DISABLED text!

You can change details such as STYLE, LABEL and EMOJI only! Please do not change the ID, or else it wont work.

If you change the ID then please reset!

5) Go to Line48 to change the TIEMOUT

Change the time in {time: ms('TIME')} ms stands for MILLISECONDS

Eg: const col = await curPage.createButtonCollector(filter, { time: ms('90s') })

CHANGING ANYTHING ELSE OF THIS CODE IS NOT RECOMMENDED

Creator Info

Discord

Support