Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.
/ YeetScript Public archive

YeetScript: TS with yeetable errros. YeetScript is a superset of TypeScript that compiles to clean JavaScript output.

License

Notifications You must be signed in to change notification settings

mikelsr/YeetScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YeetScript

It's just TypeScript but yeet can be used as throw

Yeet or be Yeeted

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

About

YeetScript: TS with yeetable errros. YeetScript is a superset of TypeScript that compiles to clean JavaScript output.

Resources

License

Stars

Watchers

Forks

Packages

No packages published