tf2-static-schema
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -27,4 +27,4 @@ const fs = require('fs-extra'); | ||
const tempDirExists = await fs.exists(dir); | ||
if (!tempDirExists) await fs.mkdir(dir); | ||
const staticDirExists = await fs.exists(dir); | ||
if (!staticDirExists) await fs.mkdir(dir); | ||
@@ -31,0 +31,0 @@ const response = await fetchAll(apiKey); |
{ | ||
"name": "tf2-static-schema", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Updates TF2 schema into temporary files that you can lazy load in your app.", | ||
@@ -5,0 +5,0 @@ "main": "./", |
# 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. | ||
## 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 | ||
@@ -8,0 +12,0 @@ If you're only using `schema.static`, install like: |
@@ -10,3 +10,3 @@ const path = require('path'); | ||
function getDir() { | ||
return path.join(__dirname, '../', './temp'); | ||
return path.join(__dirname, '../', './static'); | ||
} | ||
@@ -13,0 +13,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
47
13236777
28
4584