https://github.com/insysbio/pretty-xml-textconv
Transforming xml to pretty form in command prompt for git diff.
https://github.com/insysbio/pretty-xml-textconv
git-diff xml
Last synced: about 2 months ago
JSON representation
Transforming xml to pretty form in command prompt for git diff.
- Host: GitHub
- URL: https://github.com/insysbio/pretty-xml-textconv
- Owner: insysbio
- License: apache-2.0
- Created: 2018-06-11T08:52:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-11T08:52:12.000Z (almost 8 years ago)
- Last Synced: 2025-10-03T22:59:58.643Z (6 months ago)
- Topics: git-diff, xml
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pretty-xml-textconv
Transforming xml to pretty form in command prompt. The arguments adapted for textconv as required for .git/config.
Simple wrapper for `pretty-data` npm package.
## Installation
Required `npm` and `nodejs` installed.
```
npm install pretty-xml-textconv --global
```
Can be used to transform from command prompt.
```shell
pretty-xml-textconv file.xml >> out.txt
```
## Usage for git
For implementation in all git repositories use:
```shell
git config --global diff.xml.textconv pretty-xml-textconv
```
In particular project include lines in .gitattributes:
```
*.xml diff=xml
```
## See also
- [config gist](https://gist.github.com/metelkin/c9999257e75fabf75058b930f1859337)
- [.gitattributes gist](https://gist.github.com/metelkin/abbec1201627084da2950a7b16ca4469)
## Author
Evgeny Metelkin @metelkin