A simple package to create roasts! Light weight, No Dependencies, Easy to use, Simple and Powerful. Also Funny! You can install this package from npm. Alternatively, you can use Web API
| You are as dreadful as a goatish dozen of petty snake piss |
|---|
🔨 Install npm
npm install roastra- Import the package:
import Roastra from "roastra";- Initilize
RoastClass with the parameters below
var roast = new Roastra({
name: "Rocky",
});- Getting response
- Using callback
roast.Get(<callback>)
roast.Get((data) => {
console.log(data);
});
/* EXAMPLE OUTPUT
{
sentance: 'Rocky is crazy as a dirty puddle of unwanted slug vomit',
name: 'Rocky',
}
*/- Using
return
var data = roast.Get();
console.log(data);
/* EXAMPLE OUTPUT
{
sentance: 'Rocky is crazy as a dirty puddle of unwanted slug vomit',
name: 'Rocky',
}
*/| Parameter | Description | type | Required | Default |
|---|---|---|---|---|
name |
Name of the person you want to roast | string | false | You |
plural |
To set if name parameter is plural or not |
bool | false | false |
You can contribute to this project by adding words to words.json and Creating a PR.
Support this project by ⭐ Starring this Repo or buy me a coffee!
