Skip to content

This is a wrapper around the idgames archive public API documented at https://www.doomworld.com/idgames/api/

License

Notifications You must be signed in to change notification settings

devnoot/idgames

Repository files navigation

idgames

This is a wrapper around the idgames archive public API documented at https://www.doomworld.com/idgames/api/

publish 2 npm

Quick Start

npm install idgames
import { ping, dbPing, about, get, getParentDir, getDirs, getContents, latestVotes, latestFiles, search } from 'idgames'

;(async () => {
    const ping = await ping()

    const dbping = await dbPing()

    const about = await about()

    const get = await get({ id: '15156' })

    const getparentdir = await getParentDir({ id: '666' })

    const getdirs = await getDirs({ name: 'zvox' })

    const getfiles = await getFiles({ id: '10666' })

    const getcontents = await getContents({ id: '666' })

    const latestvotes = await latestVotes({ limit: 25 })

    const latestfiles = await latestFiles({ limit: 10 })

    const search = await search({ query: 'UDM2' })
})()

Usage

Methods

Each function in this package will return a promise resolving in the requested data. The following functions are available.

  • ping
  • dbPing
  • about
  • get
  • getParentDir
  • getDirs
  • getContents
  • latestVotes
  • latestFiles
  • search

Contributions

Please issue a pull request

About

This is a wrapper around the idgames archive public API documented at https://www.doomworld.com/idgames/api/

Resources

License

Stars

Watchers

Forks

Packages

No packages published