JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

make-image

core-api


    function
    boot.janet on line 2781, column 1

    (make-image env)

    Create an image from an environment returned by `require`. Returns 
    the image source as a string.


1 exampleSign in to add an example
Loading...
# This turns the current REPL session (environment) with all bindings, including synced closures,
# into a loadable or compilable image.
# It is the same as e.g.: `janet -c test.janet test.jimage` after (spit "test.janet" (currenv))

 (spit "test.jimage" (make-image (curenv)))
veqqqPlayground