1.0.2 • Published 3 years ago

projectmapiwrapper v1.0.2

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

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

// Returns a list of all ID's. E.G [764, 2246 ...]
ProjectMAPI.getAllClassIds().then(console.log);
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);
// Returns a list of all ID's. E.G [29, 47, 54 ...]
ProjectMAPI.getAllNpcIds().then(console.log);
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);
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago