• This repository has been archived on 05/Oct/2023
  • Stars
    star
    306
  • Rank 136,456 (Top 3 %)
  • Language
    JavaScript
  • Created almost 11 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Locus is a debugging module for node.js

ʆ Locus

Locus is a debugging module which allows you to execute commands at runtime via a REPL.

asciicast

Installing

npm install locus --save-dev

Using

require('locus');

var myVar = 123;
var myObj = {
  key: 'value'
};

function makeSomething() {
  var some = 'some value';

  // will start a repl session
  // you can manipulate the program at runtime
  eval(locus);

  // another option
  eval(require('locus'))

  return some;
}

makeSomething();

Use exit command to leave.