Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hexxone/we_project_helper
Wallpaper Engine project.json helper utility
https://github.com/hexxone/we_project_helper
increment sorts translation wallpaper-engine
Last synced: 1 day ago
JSON representation
Wallpaper Engine project.json helper utility
- Host: GitHub
- URL: https://github.com/hexxone/we_project_helper
- Owner: hexxone
- License: gpl-3.0
- Created: 2020-02-18T12:12:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T21:16:55.000Z (21 days ago)
- Last Synced: 2024-10-28T22:23:47.185Z (21 days ago)
- Topics: increment, sorts, translation, wallpaper-engine
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wallpaper Engine project.json helper utility
Since I prefer editing the "project.json" file of a wallpaper engine project manually
and the properties are not ordered by its "order" (like in the WE-gui) but by the name,
I decided to create a small tool which sorts such a file by "order" and saves it,
without breaking the ".json" format.The sorted file will be written to the same place as the input, with the suffix `.new`.
See `/example` folder.Sadly, the json format doesn't really support property-sorting by default and I just implemented my own...
Maybe there are better ways for doing this, but having more control over the process also allows for more tweaks and features.E.g.: While I was on it, I put in the ability to increment an "order" above a given value, by a given amount.
This makes it easier to add new properties in the middle without having to go through all the following ones and manually incrementing them...Maybe someone will find this useful someday ‾\\_(ツ)_/‾