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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

af608f8 · Apr 26, 2024

History

71 Commits
Apr 26, 2024
Mar 28, 2024
Jan 25, 2023
Jan 24, 2023
Mar 28, 2024
Jan 24, 2023
Jan 24, 2023
Jan 24, 2023
Apr 26, 2024
Apr 26, 2024
Apr 26, 2024
Jan 25, 2023

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