Socket
Book a DemoInstallSign in
Socket

icmodsapi

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icmodsapi

Simple Node.js module that allows you to interact with the ICMods API.

1.1.2
latest
Source
npmnpm
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

ICModsAPI

license npm downloads npm version

Simple Node.js module that allows you to interact with the ICMods API.

Installation

npm i --save icmodsapi

Usage API

Get full description for mod

import ICModsAPI from 'icmodsapi';

(async () => {
	const mod = await ICModsAPI.getModInfo(22);
	// or ICModsAPI.description
	console.log(mod);
})();

Get List Mods

const mods = await ICModsAPI.list(ICModsAPI.Sort.POPULAR, 0, 20);
console.log(mods);
const mods = await ICModsAPI.listForIds([22, 299]);
console.log(mods);

Search mods

const mods = await ICModsAPI.searchMods("industrial");
console.log(mods);

const mods = await ICModsAPI.searchModsAtTag("global");
console.log(mods);

const mods = await ICModsAPI.searchModsFromAuthor(2);
console.log(mods);

Get Image

import { writeFileSync } from "fs";

//...

const mod = await ICModsAPI.getModInfo(22);
writeFileSync("fileName.png", await ICModsAPI.getImage(mod.icon), { encoding: "binary" });

License(MIT)

See the LICENSE file for details.

Keywords

icmods

FAQs

Package last updated on 19 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.