tf2-static-schema
v1.104.0
Published
Updates TF2 schema into temporary files that you can lazy load in your app.
Readme
TF2 Static Schema
This package keeps TF2 schema files up to date in the temp folder.
This is a work in progress, bear in mind the API can change.
Reason I've created this
- Unrealibity of steam servers
- Lack of TF2 updates making it illogical to update locally every X hour
- Loading just what you want into your app!
Instalation
If you're only using schema.static, install like:
npm install --no-optional tf2-static-schemaIf you want to use core of the package (updating static files or fetching data yourself) do:
npm install tf2-static-schemaUsage
All parts are required through node resolver.
require('tf2-static-schema/static/*'), * can be one of:
attributeseffectsitem-namesitemsitems-gamelevelslookupsoriginspaint-kitspartsqualitiessets
require('tf2-static-schema/core') provides:
fetchAll- fetches all schemasupdate- updates static filesgetItemsGame- fetches game metadatagetPaintKits- fetchs paint kitsgetSchemaItems- fetches the items with API KeygetSchemaOverview- fetches the overview with API Key
This package is used as a sister package to tf2-item-format, a parsing/builder library for different TF2 item formats used across the community.
