Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mzr-api

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mzr-api

Simplify a lot of your code using MZR-API

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-21.43%
Maintainers
0
Weekly downloads
 
Created
Source

NPM info

Discord Buy Me A Coffee :)

MZR-API

The main purpose of this module is to simplify sending requests to the MZR API and reduce the error rate. It is completely based on the MZR API.

- ❓ Support

- 🌐 Website

- 📚 Document's

- 🖥 Github

Installation

npm install mzr-api
pnpm add mzr-api
yarn add mzr-api

Documentation & Examples

We cannot write here as we show everything in the most detailed way in our document. We will only add small NPM related examples in the README. For detailed information you can check documentation.

Example Get Version For CommonJS;

const { version } = require('mzr-api');

console.log(version);

Example Crypto;

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const coins = ['BTC', 'ETH'];
    const currencies = ['USD', 'EUR', 'TRY']; 

    const data = await mzrapi.crypto(coins, currencies);
    console.log(data);
})()

Example Fun;

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.fun('wasted', 'image_url.png');
    console.log(data);
})()

Example Minecraft Server Info;

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.minecraftServer('mc.hypixel.net');
    console.log(data);
})()
const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.steam('ETS 2'); // Euro Truck Simulator 2
    console.log(data);
})()

Example Translate;

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.translate('Hello! How are you', 'tr');
    console.log(data);
})()

Example Discord User Info;

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.users('701518625760346172');
    console.log(data);
})()
const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.wikipedia('Yusuf Dikeç');
    console.log(data);
})()

Example Gold Price (Only Turkiye);

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.altin();
    console.log(data);
})()

Example Earthquakes (Only Turkiye);

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.depremler(2);
    console.log(data);
})()

Example Currency (Only Turkiye);

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.doviz();
    console.log(data);
})()

Example News (Only Turkiye);

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.haberler('dunya', 2);
    console.log(data);
})()

Example Prayer Times (Only Turkiye);

const { Api } = require('mzr-api');
const mzrapi = new Api('YOUR_API_KEY');

(async () => {
    const data = await mzrapi.namazVakitleri('İstanbul', 'Esenyurt');
    console.log(data);
})()

Keywords

FAQs

Package last updated on 05 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc