JSPM

csgostash-item-parse

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q35040F
  • License MIT

Simple parser to take a resource file intercepted from csgostash.com into a json file that contains all weapon/knife skin pairs. Also includes an image url (some newer ones are broken).

Package Exports

  • csgostash-item-parse

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 (csgostash-item-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

csgostash-item-parse

simple module to parse and generate a json file containing all csgo weapon/knife skin pairs with image #s.

how to use

npm install csgostash-item-parse

go to: /path/to/this/module/

run this command: node parser.js

you will see a result.json file with all of the data.

note : image #s correspond to being able to be used like so:

take image # and use it within this URL:

http://csgostash.com/img/skins/s{image # here}.png

if the image # is less than 495 this will work. if you want an image for a weapon/skin with an image # greater than or equal to 495:

use the same image url before.. but add the wear abbreviation (fn, mw, ww etc..) to the end of the number.

ex: http://csgostash.com/img/skins/s496fn.png < gets the factory new (fn) image.

remember: many skins do not have all wear options.