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

nazma.dev.js

v0.0.15

Published

Un package pour une facilité de codage importante, inclue plusieurs fonctions utiles !

Downloads

4

Readme

Description

Un package utile avec plien de fontion pour optimisier votre code !

Le développement de ce package est en cours... la documentation arrive bienôt !

Installation

npm install --save nazma.js

Pour que le bot fonctionne bien, installer également le module de discord ( npm install --save discord.js ) !

Fonction test()

const nazma = require('nazma.js');

nazma.test();

// sortie : "Test effectué !"

Fonction embed()

const nazma = require('nazma.js');

const embed = new nazma.Embed();

.setTitle('Un titre')
.setAuthor('Author here', 'https://cdn.discordapp.com/embed/avatars/0.png', 'https://www.google.com')
.setURL('https://www.google.com')
.addField('field', 'this is inline', true)
.addField('field', 'this is not inline')
.setColor('color')
.setThumbnail('https://cdn.discordapp.com/embed/avatars/0.png')
.setDescription('description :)')
.setImage('https://cdn.discordapp.com/embed/avatars/0.png')
.setFooter('footer')
.setText('un message qui n'est pas dans l'embed mais hors d l'embed ( si vous avez pas compris, faite un teste ) !')
.setTimestamp();

// example de sortie : object embed
// fonctionne seulement en discord.jsV12 *pour le moment*

Fonction formatColor()

const nazma = require('nazma.js');

nazma.formatColor(color); // color = le nom de la couleur avec un #

// sortie en nombre

Fonction mentionUser()

const nazma = require('nazma.js');

let user = message.author;
nazma.mentionUser(user.id);

// example de sortie : "<@000000000000000>" les 0 corresponds a un id

Fonction randomNumber()

const nazma = require('nazma.js');

nazma.randomNumber(max); // max = le nombre maximum pour un aléatoire parfait

// example de sortie : "50"

Liens

Namza WebSite