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

sylvanas

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sylvanas

Covert TS to JS

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39K
increased by13.92%
Maintainers
1
Weekly downloads
 
Created
Source

Sylvanas

A tool to convert TypeScript to JavaScript with human-like code style.

How to use

npm install --save-dev sylvanas

sylvanas(files: string[], option?: Option)

const sylvanas = require('sylvanas');

const files = glob.sync('**/*.@(ts|tsx)');

const fileList = sylvanas(files);

fileList.forEach(({ data }) => {
  console.log('Trans:', data);
});

Option

cwd - string

The current working directory in which to search. Defaults to process.cwd().

action - none | write | overwrite

Default none. Set what will Sylvanas do with files:

  • write: Write new file with name of suffix .js or .jsx.
  • overwrite: Like write but will remove origin files.
outDir - string

Set the write file folder. Defaults to cwd.

FAQs

Package last updated on 03 Jun 2019

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