Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including galaxy-stack with all npm packages installed. Try it out:

var galaxyStack = require("galaxy-stack")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

galaxy-stack v0.1.3

Stack-trace helper for galaxy module

Stack frame API for harmony generators in node.js


This package provides an API to obtain stack frame information from generators.

It is an optional companion package to the galaxy package.


var helper = require('galaxy-stack')

  • cont = helper.getContinuation(gen)
    returns the continuation offset where execution will be resumed.
    gen is a suspended generator object.
  • frame = helper.getStackFrame(gen [, cont])
    returns stack frame information for a suspended generator object.
    gen is the suspended generator object.
    cont is an optional continuation offset which was obtained by a prior call to getContinuation.
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free