It's just TypeScript but
yeet
can be used asthrow
// Example of a valid YeetScript file
var can = ""
try {
if (!can)
yeet new Error("this b**ch empty!")
} catch (err) {
console.log(err.message)
}
Running the example:
$ node out/ysc.js example.ts
$ node example.js
this b**ch empty!
- npm
- gulp
./build.sh
The residual TypeScript
folder can be deleted after a successful build.
After the successfully running build.sh
, you can create a .js
file from a
YeetScript file with the .ts
extension by running:
node out/ysc.js ${your_yeetscript_file}.ts
To run the generated .js
file:
node ${your_yeetscript_file}.js