2019-09-19 12:10:37 +00:00
|
|
|
# README
|
|
|
|
|
|
|
|
## cf-purge.js
|
|
|
|
|
|
|
|
```none
|
|
|
|
$ yarn cf-purge
|
|
|
|
$ node ./scripts/cf-purge.js
|
|
|
|
|
|
|
|
Purge Cloudflare's cache.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
node scripts/cf-purge.js ...filename
|
|
|
|
|
|
|
|
filename:
|
|
|
|
Upload names separated by space (will automatically include their thumbs if available).
|
|
|
|
```
|
|
|
|
|
|
|
|
## clean-up.js
|
|
|
|
|
|
|
|
```none
|
|
|
|
$ yarn clean-up -h
|
|
|
|
$ node ./scripts/clean-up.js -h
|
|
|
|
|
|
|
|
Clean up files that are not in the database.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
node scripts/clean-up.js [mode=0|1|2]
|
|
|
|
|
|
|
|
mode:
|
|
|
|
0 = Only list names of files that are not in the database.
|
|
|
|
1 = Clean up the files.
|
|
|
|
```
|
|
|
|
|
|
|
|
## delete-expired.js
|
|
|
|
|
|
|
|
```none
|
|
|
|
$ yarn delete-expired -h
|
|
|
|
$ node ./scripts/delete-expired.js -h
|
|
|
|
|
|
|
|
Bulk delete expired files.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
node scripts/delete-expired.js [mode=0|1|2]
|
|
|
|
|
|
|
|
mode:
|
|
|
|
0 = Only list names of the expired files.
|
|
|
|
1 = Delete expired files (output file names).
|
|
|
|
2 = Delete expired files (no output).
|
|
|
|
```
|
|
|
|
|
|
|
|
## thumbs.js
|
|
|
|
|
2019-09-19 13:43:53 +00:00
|
|
|
[\[...\]](https://github.com/BobbyWibowo/lolisafe#script-for-missing-thumbnails#script-for-missing-thumbnails)
|
2019-09-19 12:10:37 +00:00
|
|
|
|
|
|
|
## bump-versions.js
|
|
|
|
|
2019-09-19 13:43:53 +00:00
|
|
|
[\[...\]](https://github.com/BobbyWibowo/lolisafe/tree/safe.fiery.me/src#readme)
|