Skip to content

Commit

Permalink
Unify usage instructions examples naming
Browse files Browse the repository at this point in the history
  • Loading branch information
lenilsondc authored Jul 13, 2021
1 parent 6b5910c commit 2e3cd02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ npm i vbspretty
As command-line (See command line options at [CLI](#cli-usage))

```shell
npx vbspretty ./src/MyUnformattedFile.vbs
npx vbspretty ./MyApp.vbs
```

### Nodejs usage
Expand All @@ -19,15 +19,15 @@ npx vbspretty ./src/MyUnformattedFile.vbs
const fs = require('fs');
const vbspretty = require('vbspretty');

const source = fs.readFileSync('./MyUnformattedFile.vbs').toString();
const source = fs.readFileSync('./MyApp.vbs').toString();

var sourcePretty = vbspretty({
level: 0,
indentChar: '\t',
breakLineChar: '\r\n',
breakOnSeperator: false,
removeComments: false,
source: fs.readFileSync('./MyApp.vbs').toString()
source: source,
});

fs.writeFileSync('./MyAppPretty.vbs', sourcePretty);
Expand All @@ -40,7 +40,7 @@ Cli accepts all options from the [api](#api) plus an `--output` option to provid
First param should always be the input file and it's mandatory, other params are optionals to configure vbspretty options. See full example bellow.

```shell
vbspretty input.vbs --level 0 --indentChar "\t" --breakLineChar "\r\n" --breakOnSeperator --removeComments --output ./out2.vbs
vbspretty MyApp.vbs --level 0 --indentChar "\t" --breakLineChar "\r\n" --breakOnSeperator --removeComments --output ./MyAppPretty.vbs
```

## API
Expand Down

0 comments on commit 2e3cd02

Please sign in to comment.