sort-resx
Sort data entries of RESX files.
npm install --save-dev @olekbruks/sort-resx
sort-resx File1.resx File2.resx ...
This node.js command line tool sorts entries in given RESX files, by their keys.
Installation and usage
To install sort-resx you need to install it from npm:
npm install --save-dev @olekbruks/sort-resx
To use this tool you may use npm executable:
sort-resx ./File1.resx ./File2.resx ...
Or use it without installing:
npx @olekbruks/sort-resx File1.resx File2.resx ...
This tool is intended to use with lint-staged.
To configure it you need to install lint-staged, set up the pre-commit
git hook to run lint-staged, preferably by using husky, and create a configuration file under the name .lintstagedrc
:
{
"*.resx": "sort-resx"
}