Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@silencesys/xlsx-to-xml
Advanced tools
This little tool converts two column XLSX Excel files to XML.
npm install -g @silencesys/xlsx-to-xml
xlsx-to-xml --input your_input_file.xml --output your_output_file.xml --config your_config.json
Option | Description |
---|---|
--input, -i | Set path to input file |
--output, -o | Set output file path |
--config, -c | Set path to config file |
--help, -h | Show help |
The config file is a standard JSON file with following structure:
{
"parentTagName": "dictionary",
"rowTagName": "entry",
"language": ["eng", "cze"],
"stripTags": [
"<span style=\"font-size:12pt;\">"
],
"replaceTags": [
{
"from": "<span style=\"font-size:9pt;\">",
"to": "<note>"
},
],
"divideBy": [
[": "]
]
}
As you can see there are several options that can be used. There is no default config file as each use case is expected to be unique. You can use aforementioned snippet as your default config file.
Option | Required | Description |
---|---|---|
parentTagName | Yes | Name of the parent tag. |
rowTagName | Yes | Name of the row tag. |
language | Optional | List of languages that should be used. |
stripTags | Optional | List of tags that should be stripped from the text. The list should contain only opening tags with all their attributes that should be removed. |
replaceTags | Optional | List of tags that should be replaced. These tags should always be defined as a JSON object containing keys from and to . Only opening tags but with all attributes should be defined there. |
divideBy | Optional | List of strings that should be used to divide the text. You might want to include spaces following after these characters as the division method is quite dumb. |
All the code is open source and you can contribute to the project by creating pull requests.
This project is licensed under the MIT license.
FAQs
Export XLSX files to XML
The npm package @silencesys/xlsx-to-xml receives a total of 0 weekly downloads. As such, @silencesys/xlsx-to-xml popularity was classified as not popular.
We found that @silencesys/xlsx-to-xml demonstrated a not healthy version release cadence and project activity because the last version was released 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.