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.
@idrinth-api-bench/typescript-language-from-yaml
Advanced tools
Translates yaml files to ts for translation autocompletion, autocorrection and better developer support
This small project handles the conversion of transslation files from yaml to typescript. Install it and run the command itlfy
to use it.
The check command will check if the yaml files in your current working directory's language
folder are valid and match. It will error for unparseable files and keys not available in english, while warning if keys are missing in other languages.
ilfy check
or itlfy chheck root-folder-name
Generate provides typescript language files according to your specification. It only works in your current working directory's language
folder and will output to ssrc/locales
by default.
Options:
--strict-types
apply strict types, so that typescript will error on build if the structures mismatch--verbatim-module-syntax
will export the type as a named export instead of a default one--simplified-hash-map
will convert the multi tiered object to a single level hash map for speed reasons.--inject-default-language
will create a file based on the default language. Only works with --simplified-hash-map
active at the same time.--split
splits the language files at the top level keys. This leads to smaller files when using dynamic imports. Usually you want --no-translations-file
as well in case of splitting.--no-translations-file
disables the creation of a translation object containing all languagesWatching will watch one or more language folders and rebuild the typescript files whenever the yaml files change.If you don't give it a root folder, it will assume the current working directory.
ilfy watch rootfolder1 rootfolder2
Generates a configuration file with the current values for the given folder or folders.
use a .idrinth-typesscript-language-from-yaml.yml
file in the root of your project to configure the tool with defaults that can be overwritten by the command line.
hasNoTranslationsFile: false
isSplit: false
originDirectory: language
isFailOnWarning: false
targetDirectory: src/locales
isStrictTypes: false
isVerbatimModuleSyntax: false
FAQs
Translates yaml files to ts for translation autocompletion, autocorrection and better developer support
The npm package @idrinth-api-bench/typescript-language-from-yaml receives a total of 235 weekly downloads. As such, @idrinth-api-bench/typescript-language-from-yaml popularity was classified as not popular.
We found that @idrinth-api-bench/typescript-language-from-yaml 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.