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.
@ayogohealth/get_copy
Advanced tools
Turn a Google spreadsheet of translation strings into a JSON file
Turns a Google spreadsheet of translation keys and string values into a JSON file, which can be used with tools like ngx-translate, react-i18next, or vue-i18n.
npm install --dev @ayogohealth/get_copy
Usage: get_copy [OPTIONS] [SPREADSHEET_ID]
Options:
-h, --help Print this help message and exit
-v, --verbose Print warnings to the console for debugging
-o, --output=FILE Destination file path (default: stdout)
-c, --value-column=COL Title of spreadsheet column to use for the
translation values (default: "value")
-k, --key-column=COL Title of spreadsheet column to use for the
translation key name (default: "key")
--no-auth-cache Disables caching of authentication tokens to file
--header Header to include at the top of the output file
Using this example spreadsheet:
npx get_copy -o src/locales/en.json 1L9x1ocxy6VwNEPsrWiTri4wGYN9FQUymRg1p267r9R4
npx get_copy -o src/locales/fr.json -c "Value-FR" 1L9x1ocxy6VwNEPsrWiTri4wGYN9FQUymRg1p267r9R4
The contents of src/locales/en.json
would be:
{
"app_name": "Hello",
"main": {
"footer": "Goodbye",
"greeting": "Hello {name}!"
}
}
The contents of src/locales/fr.json
would be:
{
"app_name": "Bonjour",
"main": {
"footer": "Au revoir",
"greeting": "Bonjour {name}!"
}
}
Contributions of bug reports, feature requests, and pull requests are greatly appreciated!
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Released under the MIT Licence.
Copyright © 2022 – 2023 Ayogo Health Inc.
FAQs
Turn a Google spreadsheet of translation strings into a JSON file
We found that @ayogohealth/get_copy 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’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.