projectmapiwrapper

1.0.2 • Public • Published

FLYFF Project M API Wrapper

Very easy to use, simple wrapper for the Project M Flyff API.

https://www.npmjs.com/package/leagueapiwrapper

Usage / Quick Start

import ProjectMAPI from 'projectmapiwrapper';
// In the future, instantiating the class with an API key may be required!
// const projectMApi = new ProjectMAPI();

// get all class ID's and log them
ProjectMAPI.getAllClassIds().then(console.log);

Methods

getAllClassIds

// Returns a list of all ID's. E.G [764, 2246 ...]
ProjectMAPI.getAllClassIds().then(console.log);
getClassById

ProjectMAPI.getClassById(764).then(console.log);

// Or, use multiple ids to get multiple values in response, seperated by comma
ProjectMAPI.getClassById(764, 9686).then(console.log);
getAllNpcIds

// Returns a list of all ID's. E.G [29, 47, 54 ...]
ProjectMAPI.getAllNpcIds().then(console.log);
getNPCById

ProjectMAPI.getNPCById(29).then(console.log);

// Or, use multiple ids to get multiple values in response, seperated by comma
ProjectMAPI.getNPCById(29, 3421).then(console.log);

Package Sidebar

Install

npm i projectmapiwrapper

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

6.1 kB

Total Files

6

Last publish

Collaborators

  • dustytrash