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.
ts-to-js-converter
Advanced tools
Tool for iteratively converting TS files in a project files to JS (needed only for windows)
npx ts-to-js-converter --source ../../source/folder/path --output ./output/directory --target ES2017 --exclude node_modules .git .gitattributes .DS_Store android ios
npx ts-to-js-converter -s .../../source/folder/path -o ./output/directory -t ES2017 -e node_modules .git .gitattributes .DS_Store android ios
options | alias | description |
---|---|---|
source | s | Source directory to be parsed. |
output | o | Output directory where the folder exists. |
target | t | Default: ES2017, specify other options. |
noResolve | r | Default: true, if false resolve dependencies as well |
copyNonTSFile | c | Default: false, if true copy Non TS File |
exclude | e | optional, specify files with spaces |
In unix bases machine this can be done with below
npx tsc ./**/*.ts* --target es5 --outDir ../outputES5 --noResolve true --jsx preserve
FAQs
Convert Typescript project to Javascript File wise
The npm package ts-to-js-converter receives a total of 0 weekly downloads. As such, ts-to-js-converter popularity was classified as not popular.
We found that ts-to-js-converter 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.