A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.npmjs.com/package/iroh below:

iroh - npm

iroh0.3.0 • Public • Published 8 years ago

Website | Examples | API

☕ Dynamic code analysis for JavaScript

Iroh is a dynamic code analysis tool for JavaScript. Iroh allows to record your code flow in realtime, intercept runtime values and manipulate program behaviour on the fly.

Installation:
npm install iroh

or alternatively the browser distribution from here.

Example:

You can play with some live examples here and you can clone them from here.

(A simple textual model is used here)

Input

function factorial(n) {

  if (n === 0) return 1;

  return n * factorial(n - 1);

};

factorial(3);

Output

call factorial ( [3] )

  call factorial ( [2] )

    call factorial ( [1] )

      call factorial ( [0] )

        if

        if end

      call factorial end -> [1]

    call factorial end -> [1]

  call factorial end -> [2]

call factorial end -> [6]

Usage:
Package Sidebar Install Downloads Weekly Downloads Collaborators

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4