New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tf2-static-schema

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tf2-static-schema

Updates TF2 schema into temporary files that you can lazy load in your app.

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-64.77%
Maintainers
1
Weekly downloads
 
Created
Source

TF2 Static Schema

This package keeps TF2 schema files up to date in the temp folder. I've created this package due to the other option being running everything locally for your app which seems illogical due to lack of updates TF2 receives.

This is a work in progress, bear in mind the API can change.

Instalation

If you're only using schema.static, install like:

npm install --no-optional tf2-static-schema

If you're either doing schema.getUpdate temp files or schema.getNet just do:

npm install tf2-static-schema

Usage

  • Alternatively you can use any static file by require('tf2-static-schema/temp/yourfile.json'.

schema.static includes:

schema.static.getAttributes, schema.static.getEffects, schema.static.getItemNames, schema.static.getItems, schema.static.getItemsGame, schema.static.getLevels, schema.static.getLookups, schema.static.getOrigins, schema.static.getPaintKits, schema.static.getParts, schema.static.getQualities, schema.static.getSets,

Which you use to lazy load the data so you don't actually have all of them.

schema.getNet: Lazy loads the net modules with Axios and VDF:

fetchAll - fetches all schemas getItemsGame - fetches game metadata getPaintKits - fetchs paint kits getSchemaItems - fetches the items with API Key getSchemaOverview - fetches the overview with API Key

FAQs

Package last updated on 27 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc