YeetScript
YeetScript copied to clipboard
YeetScript: TS with yeetable errros. YeetScript is a superset of TypeScript that compiles to clean JavaScript output.
YeetScript
It's just TypeScript but
yeetcan be used asthrow
Example
// 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!
Requirements
- npm
- gulp
Building
./build.sh
Cleanup
The residual TypeScript folder can be deleted after a successful build.
Running
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