npm.io
1.0.3 • Published 6 years ago

factorio-api-client

Licence
MIT
Version
1.0.3
Deps
1
Size
16 kB
Vulns
1
Weekly
0

factorio-api-client

A client library for communicating with Factorio's Web API & Mod Portal written in Typescript for use in NodeJS projects.

Supported Features So Far

const APIClient = require('factorio-api-client').FactorioAPIClient;
const api = new APIClient();

// Get All Mods
const result = await api.modManager.getAllModsSimple();
console.log(result);

// Get Details for specific mod by name
const modInfo = await api.modManager.getModInfoByName('016-science');
console.log(modInfo);

Keywords