asr2js and js2asr converter android string resource utils
npm install android-string-resource 
The source is available for download from
GitHub.
Alternatively, you can install using npm:
``sh`
npm install --save android-string-resource
You can then import or require() android-string-resource as normal:
`js
import android from 'android-string-resource'
// or
const android = require('android-string-resource')
android.asr2js(xml, (err, res) => {})
`
Or you can direclty import or require() its functions:
`js`
import asr2js from 'android-string-resource/asr2js'
// or
const asr2js = require('android-string-resource/cjs/asr2js')
`js
const xml =
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
})
`
Omitting the callback returns a promise
`js``
const resJs = await asr2js(xml)
const resXml = await js2asr(js)
// or
asr2js(xml).then((res) => {})
js2asr(js).then((res) => {})