UNPKG

265 BPlain TextView Raw
1import * as tsfmt from "typescript-formatter";
2
3tsfmt
4.processFiles(["./index.ts"], {
5 dryRun: true,
6replace: false,
7verify: false,
8 tsconfig: true,
9 tslint: true,
10editorconfig: true,
11 tsfmt: true
12})
13 .then(result =>{
14 console.log(result["./index.ts"].dest);
15});