A utility to clone and update xml resources file by Tiago Danin.
A utility to clone and update xml resources file
Module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
# NPM
npm install resxclone --global
# Or Using Yarn
yarn global add resxclone
Run resxclone --help
writeXml
writeXml(name, xml)
e.g writeXml('a.xml', '<?xml version="1.0" encoding="utf-8"?><resources><string name="name">Tiago</string></resources>')
readXml
readXml(name)
e.g readXml('a.xml')
updateXml
updateXml(stringsOriginal, stringsClone, prefix)
e.g updateXml({name:'Tiago'}, {name: 'TiagoDanin'}, '##TO-DO')
createXml
createXml(strings)
e.g createXml({name: 'TiagoDanin'})
To run the test suite, first install the dependencies, then run test
:
# NPM
npm test
# Or Using Yarn
yarn test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. List of all contributors.
JavaScript
1