Giter Club home page Giter Club logo

namemcwrapper's Introduction

...

NameMCWrapper

ES6 Promise based wrapper for NameMC.com

๐Ÿ“– Documentation

Version Version Build Status WakaTime Stats Discord Server

Install ๐Ÿ“ฆ

npm i namemcwrapper

Usage ๐Ÿ”ง

Check all available methods in ๐Ÿ“– Documentation.

import { NameMC, API } from "namemcwrapper"; // ESM
// OR
const { NameMC, API } = require("namemcwrapper"); // CommonJS

const nameMc = new NameMC();

// Get player skin history
nameMc.skinHistory({ nickname: "MrZillaGold" })
    .then((skins) => console.log(skins))
    .catch((error) => console.log(error));

const api = new API();

// Get player friends from API
api.profile.friends({ 
    target: "2e9d9da1-97e9-4564-890b-6f056c4e372f"
});

CloudFlare bypass โš”

Error: Request failed with status code 403

NameMC often uses CloudFlare to protect against DDoS attacks. If you want the library to work at such times, you need to deploy your own CloudProxy instance.

NameMCWrapper fully supports CloudProxy.

new NameMC({
    proxy: "http://192.168.1.51:25565/v1", // CloudProxy URL
    cloudProxy: {}
    // CloudProxy options.
    // Optional.
    // To enable CloudProxy support, you cannot delete an object!
});

Warning โš 

Since NameMC does not provide an open API, this library is based on the parsing of HTML site pages. If the changes affect the HTML used for parsing, the library may break at any time and not give the expected result. I will try to update it as soon as possible. Use at your own risk!

namemcwrapper's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar mrzillagold avatar til-weimann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

casheh mrlokop

namemcwrapper's Issues

Skin Information (NameMC Update?)

Can you update namemc skin info? they changed their site up a bit
issue with getSkin function

TypeError: ratingElement is not iterable
at SkinContext._SkinContext_parseSkinCounters (C:\Users\Administrator\Desktop\Projects\NameMCOSINT\node_modules\namemcwrapper\dist\contexts\skin\index.js:361:14)
at new SkinContext (C:\Users\Administrator\Desktop\Projects\NameMCOSINT\node_modules\namemcwrapper\dist\contexts\skin\index.js:142:112)
at C:\Users\Administrator\Desktop\Projects\NameMCOSINT\node_modules\namemcwrapper\dist\contexts\skin\index.js:256:20
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SkinContext.loadPayload (C:\Users\Administrator\Desktop\Projects\NameMCOSINT\node_modules\namemcwrapper\dist\contexts\skin\index.js:253:20)
at async NameMC.getSkin (C:\Users\Administrator\Desktop\Projects\NameMCOSINT\node_modules\namemcwrapper\dist\index.js:232:5)
at async test (C:\Users\Administrator\Desktop\Projects\NameMCOSINT\app.js:9:22)

Parse skin profile list

Hello, I was told to open a seperate issue as a feature request to add parsing of skin profiles.

Could this be added?

Generate two body renderings

Generate two body renderings

  1. Front

  2. Front and back

body: `${this.getEndpoint("render")}/skin/3d/body.png?skin=${skin || "12b92a9206470fe2"}&model=${model || "classic"}&width=${width || 600}&height=${height || 300}${front_and_back ? "&front_and_back" : ""}${theta || theta === 0 ? `&theta=${theta}` : ""}`,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.