You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
837816638@qq.com b02b851162
工商大学管理系统代码
5 years ago
..
lib 工商大学管理系统代码 5 years ago
node_modules 工商大学管理系统代码 5 years ago
.eslintignore 工商大学管理系统代码 5 years ago
.prettierrc 工商大学管理系统代码 5 years ago
README.md 工商大学管理系统代码 5 years ago
eslintrc.js 工商大学管理系统代码 5 years ago
package.json 工商大学管理系统代码 5 years ago
tsconfig.json 工商大学管理系统代码 5 years ago

README.md

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.

decoratorsBeforeExport - boolean

Same as babel decoratorsbeforeexport.