
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
android-string-resource
Advanced tools
The source is available for download from GitHub. Alternatively, you can install using npm:
npm install --save android-string-resource
You can then import
or require()
android-string-resource as normal:
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:
import asr2js from 'android-string-resource/asr2js'
// or
const asr2js = require('android-string-resource/cjs/asr2js')
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
})
Omitting the callback returns a promise
const resJs = await asr2js(xml)
const resXml = await js2asr(js)
// or
asr2js(xml).then((res) => {})
js2asr(js).then((res) => {})
2.3.9
FAQs
asr2js and js2asr converter android string resource utils
The npm package android-string-resource receives a total of 36,146 weekly downloads. As such, android-string-resource popularity was classified as popular.
We found that android-string-resource demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.