
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A sophisticated VBScript parser and beautifier powered by nodejs.
npm i vbspretty
As command-line (See command line options at CLI)
npx vbspretty ./MyApp.vbs
const fs = require('fs');
const vbspretty = require('vbspretty');
const source = fs.readFileSync('./MyApp.vbs').toString();
var sourcePretty = vbspretty({
level: 0,
indentChar: '\t',
breakLineChar: '\r\n',
breakOnSeperator: false,
removeComments: false,
source: source,
});
fs.writeFileSync('./MyAppPretty.vbs', sourcePretty);
Cli accepts all options from the api plus an --output option to provide a different file to output formatted version, if --output is omitted, the input file will be overwritten.
First param should always be the input file and it's mandatory, other params are optionals to configure vbspretty options. See full example bellow.
vbspretty MyApp.vbs --level 0 --indentChar "\t" --breakLineChar "\r\n" --breakOnSeperator --removeComments --output ./MyAppPretty.vbs
| Options | Type | Default | Description |
|---|---|---|---|
| level | number | 0 | Indent level to start off |
| indentChar | String | "spacespace" | Indent character (e.g., \t, spacespace) |
| breakLineChar | String | "\n" | Break line character (e.g., \n, \r\n) |
| breakOnSeperator | boolean | false | Whether it breaks the line on occurrences of the ":" statement separator. |
| removeComments | boolean | false | Whether it removes comments from the input. |
FAQs
A VBScript parser and beautifier
The npm package vbspretty receives a total of 1 weekly downloads. As such, vbspretty popularity was classified as not popular.
We found that vbspretty demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.