https://github.com/tiagodanin/resxclone
A utility to clone and update xml resources file
https://github.com/tiagodanin/resxclone
nodejs npm npm-package xml
Last synced: 6 months ago
JSON representation
A utility to clone and update xml resources file
- Host: GitHub
- URL: https://github.com/tiagodanin/resxclone
- Owner: TiagoDanin
- License: gpl-3.0
- Created: 2017-12-09T12:23:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T19:12:16.000Z (about 2 years ago)
- Last Synced: 2024-05-29T10:17:12.776Z (about 2 years ago)
- Topics: nodejs, npm, npm-package, xml
- Language: JavaScript
- Homepage: https://TiagoDanin.github.io/resXClone/
- Size: 256 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ResXClone
[](https://npmjs.org/package/resxclone)
[](https://npmjs.org/package/resxclone)
[](https://npmjs.org/package/resxclone)
[](https://travis-ci.org/TiagoDanin/resXClone)
A utility to clone and update xml resources file
## Installation
Module available through the
[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
or
[`yarn`](https://yarnpkg.com/en/)
command line tools.
```sh
# NPM
npm install resxclone --global
# Or Using Yarn
yarn global add resxclone
```
## Documentation
### CLI
Run `resxclone --help`
### API
**writeXml**
- `writeXml(name, xml)`
e.g `writeXml('a.xml', 'Tiago')`
**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'})`
## Tests
To run the test suite, first install the dependencies, then run `test`:
```sh
# NPM
npm test
# Or Using Yarn
yarn test
```
## Dependencies
- [caporal](https://ghub.io/caporal): A full-featured framework for building command line applications (cli) with node.js
- [rdotjson](https://ghub.io/rdotjson): Android String Resource XML Parser
- [xmlbuilder](https://ghub.io/xmlbuilder): An XML builder for node.js
## Contributors
Pull requests and stars are always welcome. For bugs and feature requests, please [create an issue](https://github.com/TiagoDanin/resXClone/issues). [List of all contributors](https://github.com/TiagoDanin/resXClone/graphs/contributors).
## License
[GPL-3.0](LICENSE)