{"_id":"@dsyncerek/node-steam-prices","_rev":"11-0f17f0d283c5264dd1375252fb9fabf5","name":"@dsyncerek/node-steam-prices","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@dsyncerek/node-steam-prices","version":"1.0.0","description":"MongoDB collection with CS:GO prices, auto-updates from csgofast api.","main":"index.js","author":{"name":"dsyncerek"},"keywords":["steam","csgo","items","prices"],"license":"MIT","homepage":"https://github.com/dsyncerek/node-steam-prices","bugs":{"url":"https://github.com/dsyncerek/node-steam-prices/issues"},"repository":{"type":"git","url":"git+https://github.com/dsyncerek/node-steam-prices.git"},"dependencies":{"async":"*","monk":"*","node-fetch":"*"},"gitHead":"cf31a3f585e7dad0f6af047336bc77544f47a24a","_id":"@dsyncerek/node-steam-prices@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"dsyncerek","email":"dsyncerek@outlook.com"},"dist":{"integrity":"sha512-DA/kvKbrp2QAgl/vgtL3GCMWlmXR9WoG4FHW3Ort23VmjqCh/wyqNVjMBsW4OOK3DxmhzY0Wtkyn6LlUuidetQ==","shasum":"4b87f57891d1a2ddd440424d364ff0e8dade10ee","tarball":"https://registry.npmjs.org/@dsyncerek/node-steam-prices/-/node-steam-prices-1.0.0.tgz","fileCount":9,"unpackedSize":36433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEsvcHZsZdHDoCmfeaUlggOldWHjAVIleHYaGM7b3GvGAiA41VmTEoqKbYTj4qF6gCLW3mcx9tAuNuaw551qTEydvg=="}]},"maintainers":[{"name":"dsyncerek","email":"dsyncerek@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-steam-prices_1.0.0_1518344925296_0.12221260869735584"},"_hasShrinkwrap":false,"deprecated":" "},"1.1.0":{"name":"@dsyncerek/node-steam-prices","version":"1.1.0","description":"MongoDB collection with CS:GO prices, auto-updates from csgofast api.","main":"index.js","author":{"name":"dsyncerek"},"keywords":["steam","csgo","items","prices"],"license":"MIT","homepage":"https://github.com/dsyncerek/node-steam-prices","bugs":{"url":"https://github.com/dsyncerek/node-steam-prices/issues"},"repository":{"type":"git","url":"git+https://github.com/dsyncerek/node-steam-prices.git"},"dependencies":{"async":"*","monk":"*","node-fetch":"*"},"gitHead":"ee5d5b3c68c309039a1963a3de151dcef1558053","_id":"@dsyncerek/node-steam-prices@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"dsyncerek","email":"dsyncerek@outlook.com"},"dist":{"integrity":"sha512-gkfLmU4mfl7ddY/cIJwDz1lOghxpQBPT0fjiOPdu+HWb1BBFkclUSQ9ow/2rgzng1qgZXBMJ96uJYGhtx4Cd6Q==","shasum":"385c70ae4812fb70419e92ab003b414da12b27bd","tarball":"https://registry.npmjs.org/@dsyncerek/node-steam-prices/-/node-steam-prices-1.1.0.tgz","fileCount":9,"unpackedSize":38651,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMaYgiEndHEZK+aHgXM7FzNF6j4Zl4aj8PP6WMickzMAIhAOW/DcNxkKbH3ggiFNWRYY9cLjCa46J8mTqj9rkn2QeP"}]},"maintainers":[{"name":"dsyncerek","email":"dsyncerek@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-steam-prices_1.1.0_1518361526135_0.7994885164005976"},"_hasShrinkwrap":false,"deprecated":" "},"2.0.0":{"name":"@dsyncerek/node-steam-prices","version":"2.0.0","description":"MongoDB collection with Steam prices.","main":"index.js","author":{"name":"dsyncerek"},"keywords":["steam","csgo","items","prices"],"license":"MIT","homepage":"https://github.com/dsyncerek/node-steam-prices","bugs":{"url":"https://github.com/dsyncerek/node-steam-prices/issues"},"repository":{"type":"git","url":"git+https://github.com/dsyncerek/node-steam-prices.git"},"dependencies":{"async":"*","monk":"*","node-fetch":"*"},"gitHead":"4d92f3d4eba215ffce35ecfc08ad520e823fd44e","_id":"@dsyncerek/node-steam-prices@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"dsyncerek","email":"dsyncerek@outlook.com"},"dist":{"integrity":"sha512-wUS4wCtSadDNeDMfUdA+d+vT0UdIeXP+iNFkbTjNJhhHYMQpv8w0QjmO7qqR90sDZuaW+64Luqb2nalF6vdxTw==","shasum":"f4c92fa38b059b903f7e0ceb0b09d7f206b241e6","tarball":"https://registry.npmjs.org/@dsyncerek/node-steam-prices/-/node-steam-prices-2.0.0.tgz","fileCount":9,"unpackedSize":42260,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEhEeQ4CCyLb4yszvWwOT/QMG8gJvqUG59FtegJ3IcowIhAPgogBHZPiPLhkpZvBHKrdkhdb599F8CJVyUZFgCdZu2"}]},"maintainers":[{"name":"dsyncerek","email":"dsyncerek@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-steam-prices_2.0.0_1519048727480_0.12345281139278108"},"_hasShrinkwrap":false,"deprecated":" "},"2.0.1":{"name":"@dsyncerek/node-steam-prices","version":"2.0.1","description":"MongoDB collection with Steam prices.","main":"index.js","author":{"name":"dsyncerek"},"keywords":["steam","csgo","items","prices"],"license":"MIT","homepage":"https://github.com/dsyncerek/node-steam-prices","bugs":{"url":"https://github.com/dsyncerek/node-steam-prices/issues"},"repository":{"type":"git","url":"git+https://github.com/dsyncerek/node-steam-prices.git"},"dependencies":{"async":"^2.6.0","monk":"^6.0.5","node-fetch":"^2.1.2"},"gitHead":"74c9f0428412f78e3b0d6171b6be45255541de32","_id":"@dsyncerek/node-steam-prices@2.0.1","scripts":{},"_shasum":"701d9c23580b88ff7dc91d903cc3bb5a647649cd","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"dsyncerek","email":"dsyncerek@outlook.com"},"dist":{"shasum":"701d9c23580b88ff7dc91d903cc3bb5a647649cd","tarball":"https://registry.npmjs.org/@dsyncerek/node-steam-prices/-/node-steam-prices-2.0.1.tgz","fileCount":4,"unpackedSize":3832,"integrity":"sha512-emd7L+KM5VdCR0VMDpRH3PjJv/IJkZZgTvDMJB8YBHfS/2evnbuE3PtrMJd8FX3g3tvbO5t9zAYo9L/MwsXlTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDa/nXDxzughLW1ZW8BGdY6T3l1QzbX7Zy7fkOGKaLVAiEA+/XLDQXAORcAztLtqR7fjCvzPyz0+7Sjb7Z/QjCTD+s="}]},"maintainers":[{"name":"dsyncerek","email":"dsyncerek@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-steam-prices_2.0.1_1522685495603_0.9379629516038095"},"_hasShrinkwrap":false,"deprecated":" "},"3.0.0":{"name":"@dsyncerek/node-steam-prices","version":"3.0.0","description":"MongoDB collection with Steam prices.","main":"index.js","author":{"name":"dsyncerek"},"keywords":["steam","csgo","items","prices"],"license":"MIT","homepage":"https://github.com/dsyncerek/node-steam-prices","bugs":{"url":"https://github.com/dsyncerek/node-steam-prices/issues"},"repository":{"type":"git","url":"git+https://github.com/dsyncerek/node-steam-prices.git"},"dependencies":{"async":"^2.6.0","monk":"^6.0.5","node-fetch":"^2.1.2"},"gitHead":"750700588d64b3719c98974f32f4b51b8f3e09c4","_id":"@dsyncerek/node-steam-prices@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"dsyncerek","email":"dsyncerek@outlook.com"},"dist":{"integrity":"sha512-F5mMmHCy0jLs5Z0vC3QLK6LbcPUR0N9/kDbKwMU4vwbTwsWP9rUEn+yF1YSS7sR5LN0DmuhLH8kMjII8Pusouw==","shasum":"b273178367b8e8b75f3e6a8dbe14dc19f409275b","tarball":"https://registry.npmjs.org/@dsyncerek/node-steam-prices/-/node-steam-prices-3.0.0.tgz","fileCount":4,"unpackedSize":3702,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTIu4CRA9TVsSAnZWagAA4fcP/3nbsRn50uAv2iHiByi6\nht0FdUtL4wEopnnHZwUFPTePR4+6WeJKcyuf9sHVObBhGq7x4bJXqlKSQKWf\nobd0wrGTC2bxQIfudX5ZuJ1mQNZLv4qF2cCa6YHADeJHbF/fWdJLy800dbsr\njdFU8YD/OWuzb0ccMq8VNtf4cpyH0pJ7lwO1xbmZhqErjpzE8J9I1X3kTw2R\nimgYcZbYAdEuZRmS98tCTAm/IAlEsFZbHFjcVG59Sfh1rBdwgXqvex9rwXzM\nXYZH4sl9dtg3iyNkL+NFV1451o/5BnYv3KId8c3M/PeDOxyNc/1Ck7259K2A\nouRW8CHUx2YAe9t1FmklZFY3pne5RbjV3yaKvhH6Su89kLf3Q+0RZ6r44V0g\nth223WDmaLUne9tWprd9PEX89rGz4vglGzSVl9gknT9iIlbIZg+OmTwUL9D6\n6IhazDLIzesXmS9684qkWXn3lLgY0uyOWA84bGwmbokJsvtFiLDGR2XBTw0v\nhCmoOiPA8dUvwh/cKCDvTBq19Spe94/FRn7Wp03wRVhYMERhDjxhDt9ZFmYQ\n74sfLm+A+kcgBls7h2mw6Q0CeBHZCzeJOu9lV8/elnpeeOeZuNEJhqXFcV2V\nmdcmq+WP194XVFQmuAFkbWAOhtZavZMrGY/R2K7LsckXAXF55SIJTaRPsPbS\npway\r\n=Q/lx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0O1HCibUgFTEH9PRmZ0hLGnsjeiuWxCPKVSP2jDMKQgIgHNZPCzzmOQv0JpN4fa2agP/2nRdtQpdMF6mG8KmuD6s="}]},"maintainers":[{"name":"dsyncerek","email":"dsyncerek@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-steam-prices_3.0.0_1531743160630_0.8003413813636306"},"_hasShrinkwrap":false,"deprecated":" "}},"time":{"created":"2018-02-11T10:28:44.913Z","1.0.0":"2018-02-11T10:28:46.055Z","modified":"2022-06-12T17:22:16.375Z","1.1.0":"2018-02-11T15:05:26.842Z","2.0.0":"2018-02-19T13:58:47.600Z","2.0.1":"2018-04-02T16:11:35.675Z","3.0.0":"2018-07-16T12:12:40.712Z"},"maintainers":[{"email":"npm@npmjs.com","name":"npm"}],"description":"MongoDB collection with Steam prices.","homepage":"https://github.com/dsyncerek/node-steam-prices","keywords":["steam","csgo","items","prices"],"repository":{"type":"git","url":"git+https://github.com/dsyncerek/node-steam-prices.git"},"author":{"name":"dsyncerek"},"bugs":{"url":"https://github.com/dsyncerek/node-steam-prices/issues"},"license":"MIT","readme":"# Steam Prices for Node.js\r\nMongoDB collection with Steam prices.\r\n## Installation\r\n```\r\nnpm i @dsyncerek/node-steam-prices\r\n```\r\n## Configuration\r\n```javascript\r\nconst SteamPrices = module.exports('your mongodb connection url', {\r\n    interval: 8, // update every 8 hours\r\n    tableName: 'steam_items'\r\n});\r\n```\r\nYou need to provide function that transforms api resopnse to array of items with ```name``` and ```price``` property.\r\n```javascript\r\nSteamPrices.addProvider('https://api.csgofast.com/price/all', data => {\r\n    let _ret = [];\r\n    for (let p in data) if (data.hasOwnProperty(p)) _ret.push({name: p, price: data[p]});\r\n    return _ret;\r\n});\r\n\r\nSteamPrices.addProvider('https://api.opskins.com/IPricing/GetAllLowestListPrices/v1/?appid=730', data => {\r\n    data = data.response;\r\n    let _ret = [];\r\n    for (let p in data) if (data.hasOwnProperty(p)) _ret.push({name: p, price: data[p].price / 100});\r\n    return _ret;\r\n});\r\n\r\nprices.update();\r\n```\r\n## Usage\r\n```javascript\r\nSteamPrices.getItem('AWP | Dragon Lore (Factory New)').then(data => console.log(data));\r\n```","readmeFilename":"README.md"}