Updates TF2 schema into temporary files that you can lazy load in your app.
npm install tf2-static-schemaThis is a work in progress, bear in mind the API can change.
schema.static, install like:
npm install --no-optional tf2-static-schema
`
If you want to use core of the package (updating static files or fetching data yourself) do:
`
npm install tf2-static-schema
`Usage
All parts are required through node resolver.require('tf2-static-schema/static/'), can be one of:
- effects
- item-names
- items
- items-game
- levels
- lookups
- origins
- paint-kits
- parts
- qualities
- setsrequire('tf2-static-schema/core') provides:-
fetchAll - fetches all schemas
- update - updates static files
- getItemsGame - fetches game metadata
- getPaintKits - fetchs paint kits
- getSchemaItems - fetches the items with API Key
- getSchemaOverview` - fetches the overview with API KeyThis package is used as a sister package to tf2-item-format, a
parsing/builder library for different TF2 item formats used across the community.