Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-to-js-converter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-to-js-converter

Convert Typescript project to Javascript File wise

  • 0.0.4
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

ts-to-js-converter

Needed only for Windows

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
optionsaliasdescription
sourcesSource directory to be parsed.
outputoOutput directory where the folder exists.
targettDefault: ES2017, specify other options.
noResolverDefault: true, if false resolve dependencies as well
copyNonTSFilecDefault: false, if true copy Non TS File
excludeeoptional, specify files with spaces

NOT needed in UNIX based machines (Mac or Linux)

In unix bases machine this can be done with below

npx tsc ./**/*.ts* --target es5 --outDir ../outputES5 --noResolve true --jsx preserve

FAQs

Package last updated on 22 Aug 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc