0.1.4 • Published 3 years ago

drivet.js v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

drivet.js

Using Drivet's API made easy Package Version TypeScript

Install

NPM

npm install drivet.js

Yarn

yarn add drivet.js

All Endpoints

Facts

FunctionDescriptionParamsType
catFact()Sends a random cat factnoneJSON
dogFact()Sends a random dog factnoneJSON

Filters

FunctionDescriptionParamsType
greyscale()Turn a image to black and whiteurl, rawJSON or RAW
invert()Turn a image colors to invertedurl, rawJSON or RAW
pixelate()Turn a image to pixelatedurl, rawJSON or RAW
sepia()Turn a image to sepiaurl, rawJSON or RAW

Fun

FunctionDescriptionParamsType
eightball()Sends a random 8ball responsenoneJSON
fml()Sends a random fuck-my-life qoutenoneJSON
reverse()Reverse a texttextJSON
vaporwave()Vaporwave a texttextJSON

Images

FunctionDescriptionParamsType
cat()Sends a random cat picturenoneJSON
dog()Sends a random dog picturenoneJSON
bird()Sends a random bird picturenoneJSON

Miscellaneous

FunctionDescriptionParamsType
chat()Talk with an AImessage, uidJSON

Example

Using Drivet's API is pretty easy. Once installed, you may use it like this:

const { DrivetClient } = require('drivet.js')
// or
import { DrivetClient } from 'drivet.js';
const drivet = new DrivetClient();

let dogFact = await drivet.facts.dogFact();
let reverse = await drivet.facts.reverse({ text: 'Funny Text' });

console.log(dogFact)
// Returns { "fact": "More than one in three U.S. families owns a dog." }
console.log(reverse)
// Returns { "text": "txeT ynnuF" } 

Support

Join our Discord Server to get support with this package.

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago