Package Exports
- @bytelab/steamsearch
- @bytelab/steamsearch/src/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 (@bytelab/steamsearch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
steamsearch
SteamSearch searches for apps on the Steam store.
Usage
const { steamSearch } = require(`@bytelab/steamsearch`);
steamSearch(`Half-Life`, `us`).then(game=>{
console.log(game.price_overview.final_formatted);
// Returns $9.99
})
steamSearch(`Portal`, `gb`).then(game=>{
console.log(game.price_overview.final_formatted);
// Returns £7.19
})
steamSearch(`Team Fortress 2`, `us`).then(game=>{
console.log(game.release_date.date);
// Returns Oct 10, 2007
})