JSPM

@jeppevinkel/steam-search

1.0.0-beta.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q35972F
  • License MIT

API for searching on the Steam store.

Package Exports

  • @jeppevinkel/steam-search
  • @jeppevinkel/steam-search/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jeppevinkel/steam-search) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@jeppevinkel/steam-search

npm (scoped)

Api for searching games from the Steam store. This search API works by calling the regular steam store page and scraping the results from the page. It doesn't yet support scrolling the page, so it might be limited in the number of results per search query.

Installation

Use npm to install the package.

npm install @jeppevinkel/steam-search

Usage

import {SteamSearch, QueryBuilder, ResultType} from '@jeppevinkel/steam-search'

let query = QueryBuilder.create()
    .search('counter-strike')

SteamSearch.search(query).then((results) => {
    for (let result of results) {
        const type = result.type == ResultType.App ? 'App' : 'Bundle'
        console.log(`[${type}] (${result.appId}) ${result.title}`)
    }
})

Docs

https://jeppevinkel.github.io/steam-store-search

Contributing

Pull requests are welcome. For design changes, please open an issue to discuss what you would like to change.

License

MIT