Comparing version 1.1.0 to 1.1.1
34
index.js
@@ -1,5 +0,3 @@ | ||
module.exports.HelloWorld = require("./src/functions/HelloWorld") | ||
// module.exports.HelloWorld = require("./src/functions/HelloWorld") | ||
module.exports.logger = require("./src/functions/logger") | ||
module.exports.ordinal_letters = require("./src/functions/ordinal_letters") | ||
@@ -11,5 +9,5 @@ | ||
module.exports.reverse = require("./src/functions/reverse") | ||
module.exports.reverse = require("./src/functions/text/reverse") | ||
module.exports.EmbedPages = require("./src/functions/embedPages") | ||
// module.exports.EmbedPages = require("./src/functions/embedPages") | ||
@@ -22,6 +20,26 @@ module.exports.chatBot = require("./src/functions/chatbot") | ||
module.exports.Echo = require("./src/classes/echo") | ||
// module.exports.Echo = require("./src/classes/echo") | ||
module.exports.Car = require("./src/classes/Car") | ||
// module.exports.Car = require("./src/classes/Car") | ||
module.exports.someone = require("./src/classes/someone") | ||
module.exports.someone = require("./src/classes/someone") | ||
// module.exports.Reset = require("./src/colors/Reset") | ||
// module.exports.format = require("./src/functions/format") | ||
// module.exports.ConnectFour = require("./src/classes/connect4") | ||
module.exports.shuffle = require("./src/functions/text/shuffle") | ||
module.exports.aesthetic = require("./src/functions/text/aesthetic") | ||
// module.exports.creplace = require("./src/functions/text/functions") | ||
// module.exports.shorten = require("./src/functions/text/shorten") | ||
// module.exports.euro = require("./src/functions/text/functions") | ||
module.exports.pseudo = require("./src/functions/text/pseudo") | ||
module.exports.lolcat = require("./src/functions/text/lolcat") |
{ | ||
"name": "voider", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A simple api with many functionalities and classes!", | ||
"main": "index.js", | ||
"main": "test.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "node ." | ||
}, | ||
@@ -9,0 +10,0 @@ "repository": { |
180
README.md
@@ -5,3 +5,3 @@ # ✨ VOIDER | ||
<div align="center"> | ||
<div align="center" > | ||
<p> | ||
@@ -35,10 +35,20 @@ <a href="https://nodei.co/npm/voider | ||
- [Logger](https://www.npmjs.com/package/voider#logger) - It's like console.log but shorter. | ||
- [chatBot](https://www.npmjs.com/package/voider#chatbot) - Replies to your messages in discord (with message event). | ||
- [Ordinal Numbers](https://www.npmjs.com/package/voider/#ordinal) - Ordinal numbers ends with <b>st</b> <b>nd</b> <b>rd</b> or <b>th</b> | ||
- [Ordinal Letters](https://www.npmjs.com/package/voider/#ordinal_letters) - Ordinal letters without numbers. | ||
- [Reverse](https://www.npmjs.com/package/voider/#reverse) - Reverses the paragraph, text, message. | ||
- [randomNumber](https://www.npmjs.com/package/voider/#randomNumber) - Sends a random number. | ||
- [Random String](https://www.npmjs.com/package/voider/#randomString) - Picks a random string (needs to be array) | ||
### <p align="center" style="margin:auto;font-size:150%;">Discord</p> | ||
- [Chat Bot](https://www.npmjs.com/package/voider#chat-bot) - Replies to your messages in discord (with message event). | ||
--- | ||
### <p align="center" style="margin:auto;font-size:150%;">Texts</p> | ||
- [Lol Cat](https://www.npmjs.com/package/voider#lol-cat) - Lol cat. | ||
- [Pseudo](https://www.npmjs.com/package/voider#pseudo) pseudos a text | ||
- [Reverse](https://www.npmjs.com/package/voider/#reverse) - Reverses the paragraph, text, message. | ||
- [Shuffle](https://www.npmjs.com/package/voider/#shuffle) - shuffles a string | ||
- [Aesthetic](https://www.npmjs.com/package/voider/aesthetic) - aesthetic the string | ||
--- | ||
### <p align="center" style="margin:auto;font-size:150%;">Utility</p> | ||
- [Ordinal Numbers](https://www.npmjs.com/package/voider/#ordinal-numbers) - Ordinal numbers ends with <b>st</b> <b>nd</b> <b>rd</b> or <b>th</b> | ||
- [Ordinal Letters](https://www.npmjs.com/package/voider/#ordinal-letters) - Ordinal letters without numbers. | ||
- [Random Numbers](https://www.npmjs.com/package/voider/#random-numbers) - Sends a random number. | ||
- [Random String](https://www.npmjs.com/package/voider/#random-string) - Picks a random string (needs to be array) | ||
## ✈ Importing | ||
@@ -48,6 +58,6 @@ | ||
// Using Node.js `require()` | ||
const voider = require("voider"); | ||
const void = require("voider"); | ||
// Using ES6 imports | ||
import voider from "voider"; | ||
import void from "voider"; | ||
``` | ||
@@ -62,26 +72,21 @@ | ||
## 🔧 Usages | ||
Usages of the command (or an example) | ||
--- | ||
#### Functions/classes with: | ||
**Name**: [name]<br /> | ||
**Description**: "[description]"<br /> | ||
**Required Arguments**: {arguments}<br /> | ||
**Permissions**: [permissions]<br /> | ||
is only for `discord`, but the *****required args***** is for `discord` nor `own code` | ||
## **Logger** | ||
--- | ||
```javascript | ||
// Example on how to log a member count :) | ||
# <p align="center" style="font-size:90%;margin:auto;">Discord</p> | ||
const members = message.guild.memberCount() | ||
logger(members) | ||
// Or code your own | ||
logger("Hello World!") | ||
}); | ||
``` | ||
--- | ||
## **chatBot** | ||
## Chat Bot | ||
#### With a command | ||
### With a command | ||
```javascript | ||
@@ -97,3 +102,3 @@ // Example of a chatbot with a command | ||
### Using a event | ||
#### Using a event | ||
@@ -104,3 +109,3 @@ ```js | ||
const { chatBot } = require("voider") | ||
const client = require("./index.js") // index.js or main.js or whatever name is your main file; | ||
const client = require("./index.js") // main file | ||
@@ -115,20 +120,47 @@ client.on("message", async(message) => { // Depends on your event handler | ||
--- | ||
# <p align="center" style="font-size:90%;margin:auto;">Texts</p> | ||
--- | ||
## **Ordinal Numbers** | ||
## Lol Cat | ||
**Name**: Lol cat<br /> | ||
**Description**: "lololololol cat"<br /> | ||
**Required Arguments**: [text, message, string]<br /> | ||
**Permissions**: [SEND_MESSAGES, VIEW_CHANNEL]<br /> | ||
**Code**: | ||
```js | ||
const void = require("voider") | ||
console.log(void.lolcat("Some String")) | ||
``` | ||
--- | ||
## Pseudo | ||
**Name**: Pseudo<br /> | ||
**Description**: "pseudo a string"<br /> | ||
**Required Arguments**: [text, message, string]<br /> | ||
**Permissions**: [SEND_MESSAGES, VIEW_CHANNEL]<br /> | ||
**Code**: | ||
```js | ||
// Example on how to use ordinal number(s) | ||
const void = require("voider") | ||
const { ordinal, logger } = require("voider") // Don't actually include "logger" if you don't want. | ||
console.log(void.pseudo("Some String")) | ||
``` | ||
logger(ordinal(message.guild.memberCount)) | ||
--- | ||
// Or code your own | ||
## Reverse | ||
**Name**: Reverse<br /> | ||
**Description**: "reverses a string"<br /> | ||
**Required Arguments**: [text, message, string]<br /> | ||
**Permissions**: [SEND_MESSAGES, VIEW_CHANNEL]<br /> | ||
**Code**: | ||
```js | ||
const { ordinal, logger } = require("voider") | ||
const void = require("voider") | ||
logger(ordinal(135)) | ||
/* Output: 135th */ | ||
console.log(void.reverse("Some String")) | ||
``` | ||
@@ -138,11 +170,52 @@ | ||
## **Ordinal Letters** | ||
## Shuffle | ||
**Name**: Shuffle<br /> | ||
**Description**: "shuffles a string"<br /> | ||
**Required Arguments**: [text, message, string]<br /> | ||
**Permissions**: [SEND_MESSAGES, VIEW_CHANNEL]<br /> | ||
**Code**: | ||
```js | ||
const void = require("voider") | ||
console.log(void.shuffle("Some String")) | ||
``` | ||
--- | ||
## Aesthetic | ||
**Name**: Aesthetic<br /> | ||
**Description**: "aesthetics a string"<br /> | ||
**Required Arguments**: [text, message, string]<br /> | ||
**Permissions**: [SEND_MESSAGES, VIEW_CHANNEL]<br /> | ||
**Code**: | ||
```js | ||
// An Example of ordinal letters without numbers. | ||
const void = require("voider") | ||
const { ordinal_letters, logger } = require("voider") | ||
console.log(void.aesthetic("Some String")) | ||
``` | ||
logger(ordinal_letters(130)) | ||
/* Output: "th" */ | ||
**More texts coming soon!** | ||
--- | ||
# <p align="center" style="font-size:90%;margin:auto;">Utility</p> | ||
--- | ||
## Ordinal Numbers | ||
```js | ||
// Example on how to use ordinal number(s) | ||
const { ordinal } = require("voider") | ||
console.log(ordinal(message.guild.memberCount)) | ||
// Or code your own | ||
const { ordinal } = require("voider") | ||
console.log(ordinal(135)) | ||
/* Output: 135th */ | ||
``` | ||
@@ -152,16 +225,17 @@ | ||
## **Reverse** | ||
## Ordinal Letters | ||
```js | ||
// Example on how to reverse a sentence or a message, text | ||
// An Example of ordinal letters without numbers. | ||
const { reverse, logger } = require("voider") | ||
const { ordinal_letters } = require("voider") | ||
logger(reverse("Hello World")) | ||
/* Output: dlroW olleH */ | ||
console.log(ordinal_letters(130)) | ||
/* Output: "th" */ | ||
``` | ||
--- | ||
## **randomNumber** | ||
## Random Numbers | ||
@@ -171,9 +245,9 @@ ```js | ||
const { randomNumber, logger } = require("voider") | ||
const { randomNumber } = require("voider") | ||
logger(randomNumber(500, 200)) | ||
console.log(randomNumber(500, 200)) | ||
/* Output: Logs a random number -> 500 to 200 numbers */ | ||
``` | ||
## **Random String** | ||
## Random String | ||
@@ -183,7 +257,7 @@ ```js | ||
const voider = require("voider") | ||
const void = require("voider") | ||
let someRandomString = voider.randomString(["Hello", "World!", "Nice"]) | ||
let someRandomString = void.randomString(["Hello", "World!", "Nice"]) | ||
voider.logger(someRandomString) // Output: Some random string for the words array. | ||
console.log(someRandomString) // Output: Some random string from the words array. | ||
``` |
@@ -26,2 +26,2 @@ import { Message, User } from "discord.js"; | ||
time?: number | ||
); | ||
); |
77
test.js
@@ -1,47 +0,52 @@ | ||
/* ORDINAL NUMBERS */ | ||
// /* ORDINAL NUMBERS */ | ||
// numbers | ||
const voider = require("voider") | ||
// // numbers | ||
// const voider = require("voider") | ||
module.exports = { | ||
name: "ordinal", | ||
run: async(client, message, args) => { | ||
message.channel.send(voider.ordinal(23)) // output: 23rd | ||
} | ||
} | ||
// module.exports = { | ||
// name: "ordinal", | ||
// run: async(client, message, args) => { | ||
// message.channel.send(voider.ordinal(23)) // output: 23rd | ||
// } | ||
// } | ||
// with declarations | ||
// // with declarations | ||
const voider = require("voider") | ||
// const voider = require("voider") | ||
module.exports = { | ||
name: "ordinal", | ||
run: async(client, message, args) => { | ||
const guildMembers = message.guild.memberCount | ||
message.channel.send(guildMembers) // output: count of the members in your guild? | ||
} | ||
} | ||
// module.exports = { | ||
// name: "ordinal", | ||
// run: async(client, message, args) => { | ||
// const guildMembers = message.guild.memberCount | ||
// message.channel.send(guildMembers) // output: count of the members in your guild? | ||
// } | ||
// } | ||
/* ORDINAL LETTERS */ | ||
// /* ORDINAL LETTERS */ | ||
// letters | ||
const voider = require("voider") | ||
// // letters | ||
// const voider = require("voider") | ||
module.exports = { | ||
name: "ordinal-letters", | ||
run: async(client, message, args) => { | ||
message.channel.send(23) // output: "rd" | ||
} | ||
} | ||
// with declarations | ||
// module.exports = { | ||
// name: "ordinal-letters", | ||
// run: async(client, message, args) => { | ||
// message.channel.send(23) // output: "rd" | ||
// } | ||
// } | ||
// // with declarations | ||
const voider = require("voider") | ||
// const voider = require("voider") | ||
module.exports = { | ||
name: "ordinal-letters", | ||
run: async(client, message, args) => { | ||
const guildMembers = message.guild.memberCount | ||
message.channel.send(guildMembers) // output: ordinal letter - count of the members.. | ||
} | ||
} | ||
// module.exports = { | ||
// name: "ordinal-letters", | ||
// run: async(client, message, args) => { | ||
// const guildMembers = message.guild.memberCount | ||
// message.channel.send(guildMembers) // output: ordinal letter - count of the members.. | ||
// } | ||
// } | ||
const m = require("./index") | ||
const { format } = require("./index") | ||
console.log(m.lolcat("Hello")) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21203
383
252
17
2