resxclone
A utility to clone and update xml resources file
Last updated 2 years ago by tiagodanin .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install resxclone -g
SYNC missed versions from official npm registry.

ResXClone

Node Version Downloads Travis

A utility to clone and update xml resources file

Installation

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

Documentation

CLI

Run resxclone --help

API

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'})

Tests

To run the test suite, first install the dependencies, then run test:

# NPM
npm test
# Or Using Yarn
yarn test

Dependencies

  • caporal: A full-featured framework for building command line applications (cli) with node.js
  • rdotjson: Android String Resource XML Parser
  • xmlbuilder: An XML builder for node.js
  • snyk: snyk library and cli utility

Contributors

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. List of all contributors.

License

GPL-3.0

Current Tags

  • 1.2.0                                ...           latest (2 years ago)

7 Versions

  • 1.2.0                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |