
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
WindScript是一种解释性语言(不保证其速度,仅供娱乐),简称WS
你可以使用命令行工具WScmd.js来运行 或者使用nodejs模块windscript.js来运行
WScmd是使用node编写的命令行工具,提供了运行WS文件的方法以及WS RLrun交互模式
在终端输入node .\WScmd.js -f <path>会运行path处的WS文件
示例:
$ node .\WScmd.js -f .\template\helloworld.ws
Hello world!
This message by the template
This is a warn message
This is an error message
以上代码运行了 ./template/helloworld.ws 的WS文件
在终端输入node .\WScmd.js会进入WS RLrun交互模式
$ node .\WScmd.js
Welcome to WindScript RLrun v0.0.1
Press Ctrl+D to exit the RLrun
> {Num} a = 0
0
> ==> a
0
> {Num} a = 114514;
114514
> ==> a;
114514
>
windscript是一个nodejs模块,提供了运行WS文件的方法,你可以使用windscript模块在你的js代码中运行WS文件
模块引入方法 示例代码:template-run.js
const WSrun = require("windscript");
const project = new WSrun();
project
.setPath("./template/helloworld.ws")
.run();
示例代码:helloworld.ws
{Str} text = Hello world!;
==> text;
{Str} text = This message by the template;
==> text;
{Str} w = This is a warn message;
W==> w;
{Str} E = This is an error message;
E==> E;
运行
$ node .\template\template-run.js
Hello world!
This message by the template
This is a warn message
This is an error message
首先引入模块 然后定义一个WSrun类 使用 setPatn(path) 将WSrun类的运行文件路径设置为path 使用 run() 运行WSrun类读取到的代码
const WSrun = require("windscript");
const project = new WSrun();
project
.setPath("./template/helloworld.ws")
.run();
以上代码会运行位于 ./template/helloworld.ws 处的WS文件
首先引入模块 然后定义一个WSrun类 使用 setCode(code) 将WSrun类的运行文件路径设置为code 使用 run() 运行WSrun类读取到的代码
const WSrun = require("windscript");
const project = new WSrun();
project
.setCode("{Str} E = This is an error message;\nE==> E;")
.run();
以上代码会使用WS运行
{Str} E = This is an error message;
E==> E;
FAQs
Deal with WS File
We found that windscript 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.