ansuz.js started as an effort to abstract away the common forms of code that seemed to always end up in my programs.

After a while, as the list of functions grew, I wanted to return to my minimalist roots.

I decided to make sure that each function adhered to a common code style that would make each function as readable to machines as to humans.

You'll see that if you read through the code below, functions which depend on earlier functions are annotated in line comments, like so:

            //[carte]

You can exploit this functionality by loading ansuz.js at the nodejs REPL, and re-exporting a smaller version of the library that only contains the functions that you need.

It manages this by parsing all the functions in the library, and constructing a dependency tree (at runtime).

As a result, you can write more functions at the same REPL, and write them to a new superset file.

You can think of ansuz.js as a library dedicated to metaprogramming

           // ansuz