0.1.2 • Published 6 years ago

minecraft-curseforge-getter v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Minecraft CurseForge Getter

English | Chinese

Introduction

This is a CurseForge crawler written in javascript. It can crawl data from CurseForge, including mod information and modpack information.

Usage

First, you should add this package to your project.

// We really recommend you to use yarn
yarn add minecraft-curseforge-getter

// Traditional npm is also accessable
npm install minecraft-curseforge-getter --save

// And if you're in mainland China
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install minecraft-curseforge-getter --save

Then, you can use as tests go. Here's an example.

import { curseforge } from "minecraft-curseforge-getter";

curseforge.getPage(1, {}, mods => {
  console.log(mods.length);
});

Contribution

WIP.

License

MIT