@hyrious/rvdata2-textconv
v0.1.1
Published
git diff textconv tool for Scripts.rvdata2
Maintainers
Readme
@hyrious/rvdata2-textconv
A simple textconv script to print Scripts.rvdata2 (RPG Maker VA) in git diff.
Install
npm i -g @hyrious/rvdata2-textconvUsage
Print contents of Scripts.rvdata2:
rvdata2-textconv Scripts.rvdata2Git
Add this to your global .gitconfig or .git/config per repo:
[diff "rvdata2"]
textconv = rvdata2-textconvAdd this to your .gitattributes per repo (create one if not exist):
*.rvdata2 diff=rvdata2Todo
Currently I'm not in a hurry to implement features below, if you find this tool helpful and want something new, feel free to raise an issue or make a pull request!
- Add a smarter printer to handle other
.rvdata2files, for example:- if the file starts with
Scripts, print it in $RGSS_SCRIPTS format - if the file contains an array of objects, and the first one is
nil, print it in database format (one item per line) - otherwise, print it in yaml or json format
- if the file starts with
- When the "smart" one not work, add flags to manually select one format:
- e.g. run with
--format=db
- e.g. run with
License
MIT @ hyrious
