2.3.4 • Published 5 years ago
simplifier-shortener v2.3.4
#Simplifier-Shortener
##Installing
Installing is quite easy. Just follow the steps below.
- Run
npm i simplifier-shortener --save
(If you want to install it globally, add '-g' before the package name!)
"How do you use it?", you might ask.
const app = require('simplifier-shortener')
console.log(app.info) //Returns the package's info in JSON form.
console.log(app.millisecondConvert(6, 'minutes')) //Returns the conversion of 6 minutes into milliseconds. (Only works with seconds and minutes right now.)
app.log('some text') //A shorter way to console log stuff if you set the package to a small constant.
app.discordWebhookSend('webhookURL', 'message') //Send a Discord webhook.
app.fileHandle(`${__dirname}/<folder>`); //Run the files in the specified folder on start. (If you use "node .", please switch to "node <file name with handler>")