# djs-password

> A password creator!

Latest version **1.0.6** (published 2021-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install djs-password
pnpm add djs-password
yarn add djs-password
bun add djs-password
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-10-19 |
| First published | 2021-10-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Iron Golm |
| Maintainers | iron_dev |

## Links

- npm: https://www.npmjs.com/package/djs-password
- npm.io page: https://npm.io/package/djs-password

## Dependencies (2)

- [discord.js](https://npm.io/package/discord.js.md) ^13.2.0
- [djs-password](https://npm.io/package/djs-password.md) ^1.0.6

## Recent versions

- 1.0.6 (latest) — 2021-10-19
- 1.0.5 — 2021-10-19
- 1.0.4 — 2021-10-19
- 1.0.3 — 2021-10-19
- 1.0.2 — 2021-10-19
- 1.0.1 — 2021-10-19
- 1.0.0 — 2021-10-19

## README

# Djs-Password 

[![NPM][npm-icon]][npm-url]

[![js-standard-style][standard-image]][standard-url]

[npm-icon]: https://nodei.co/npm/djs-password.svg?downloads=true
[npm-url]: https://npmjs.org/package/djs-password
[semantic-url]: https://github.com/semantic-release/semantic-release
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
[standard-url]: http://standardjs.com/

&nbsp;

# Installation
```
npm i djs-password
```

&nbsp;

# Setup
```fs
//require the djs-password module
const password = require('djs-password');

//call the password generator
password.genPassword(message, <Number>)
```

# Example (djs v13)

```js
const discord = require('discord.js');
const password = require('djs-password');

const client = new discord.Client({
  intents: 32767,
});

let prefix = '!';
let token = 'bot token goes here!';

client.on('ready', () => {
	console.log(`${client.user.tag} is ready!`);
});

client.on('messageCreate', async(message) => {
  if (!message.content.startsWith(prefix) || message.author.bot) 
    return;

  const args = message.content.slice(prefix.length).trim().split(/ +/);
	const command = args.shift().toLowerCase();

  if(command === 'password') {
    try {
    if(args[0] > 256)
      return message.channel.send({ content: "Max limit hit" });
    password.genPassword(message, args[0]);
    } catch (e) {
      message.channel.send(e)
    }
  } else if(command === 'ping') {
    message.channel.send({ content: `${client.ws.ping}ms!` })
  }

})

client.login(token)
```

If you have any questions, be welcome to message me on Discord.
> The_Iron_Golm#5615

---
_Source: https://npm.io/package/djs-password · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
