
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.
@xml-locales/cli
Advanced tools
[](https://www.npmjs.com/package/xml-locales)
This is cli tool to work with localization files in xml.
npm install -g @xml-locales/cli
yarn global add @xml-locales/cli
pnpm add -g @xml-locales/cli
[!IMPORTANT] This package, which works with XML files, has one root node named
resources
. This root node has child nodes namedstring
. For example:
<resources> <string name="key1">value1</string> <string name="key2">value2</string> </resources>
npx @xml-locales/cli <command> [...args]
The add
command is used to add a new key(s)-value(s) pair to the XML localization file or files from directory.
xml-locales add --path path/to/file_or_directory --keys newKey --values newValue
Flag | Alias | Default | Description |
---|---|---|---|
--path | -p | process.cwd() | The path to the XML localization file or directory where the key-value pair will be added. |
--keys | -k | None | The new key(s) to be added. |
--values | -v | None | The value(s) to be associated with the new key. |
The remove
command is used to remove a key(s)-value(s) pair from the XML localization file or files from directory.
xml-locales remove --path path/to/file_or_directory --keys keyToRemove --values valueToRemove
Flag | Alias | Default | Description |
---|---|---|---|
--path | -p | process.cwd() | The path to the XML localization file or directory where the key-value pair will be removed. |
--keys | -k | None | Removed string by the key(s). |
--values | -v | None | Or removed string by the value(s). |
The update
command is used to update a key(s)-value(s) pair in the XML localization file or files from directory.
xml-locales update --path path/to/file_or_directory --old oldValue --new newValue
Flag | Alias | Default | Description |
---|---|---|---|
--path | -p | process.cwd() | The path to the XML localization file or directory where the key-value pair will be updated. |
--old | -o | None | The old key(s) or value(s) to be updated. |
--new | -n | None | The new key(s) or value(s) to replace the old one. |
The sort
command is used to sort the keys in the XML localization file or directory in ascending or descending order.
xml-locales sort --path path/to/file_or_directory --direction asc_or_desc
Flag | Alias | Default | Description |
---|---|---|---|
--path | -p | process.cwd() | The path to the XML localization file or directory where the keys will be sorted. |
--direction | -d | 'asc' | The sort direction. Can be 'asc' for ascending order or 'desc' for descending order. |
The convert
command is used to convert the XML localization file or directory to JSON format.
xml-locales convert --path path/to/file_or_directory
Flag | Alias | Default | Description |
---|---|---|---|
--path | -p | process.cwd() | The path to the XML localization file or directory where the file will be converted. |
Package | version |
---|---|
📦xml-locales | |
💻@xml-locales/cli |
FAQs
[](https://www.npmjs.com/package/xml-locales)
We found that @xml-locales/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.