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
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-searchUsage
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.