npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

android-string-resource

1.2.2 • Public • Published

travis npm

Download

The source is available for download from GitHub. Alternatively, you can install using npm:

npm install --save android-string-resource

You can then require() android-string-resource as normal:

const android-string-resource = require('android-string-resource');

Or you can direclty require() its functions:

const asr2js = require('android-string-resource/asr2js');

Usage

 
const xml = `<resources>
  <string name="key1">Hello</string>
  <string name="key2">An application to manipulate and process asr documents</string>
  <string name="key.nested">asr Data Manager</string>
</resources>`;
 
const js = {
  "key1": "Hello",
  "key2": "An application to manipulate and process asr documents",
  "key.nested": "asr Data Manager"
};
 
const asr2js = require('android-string-resource/asr2js');
asr2js(xml, (err, res) => {
  // res is like js
});
 
const js2asr = require('android-string-resource/js2asr');
js2asr(js, (err, res) => {
  // res is like xml
});
 

install

npm i android-string-resource

Downloadsweekly downloads

5,368

version

1.2.2

license

MIT

homepage

locize.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability