1.0.0 • Published 2 years ago

@violetics/news v1.0.0

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

Violetics API News

News API Wrapper for https://violetics.pw/api/news

@@ Created on 23-03-22 | Violetics @@

Installation

npm install @violetics/news

yarn add @violetics/news

Example Request

"use strict";
const Violetics = require("@violetics/news");
const v = new Violetics("API_KEY"); // register on https://violetics.pw/ to get your own apikey

/* then, catch */
v.antara()
	.then((data) => {
		console.log("data", data);
	})
	.catch(console.error);

/* callback */
v.antara((error, data) => {
	if (error) return console.error(error);
	console.log("data", data);
});

Information

+ dont forget to star <3
! contribute to this project! ~~~
- please add issue if you having problem with installation

! github: https://github.com/Violetics/news