factorio-api-client

1.0.3 • Public • Published

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);

Package Sidebar

Install

npm i factorio-api-client

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

16.7 kB

Total Files

21

Last publish

Collaborators

  • morpheuszero