npm.io
2.0.4 • Published 6 years ago

locus

Licence
LGPL-3.0
Version
2.0.4
Deps
12
Size
6 kB
Vulns
0
Weekly
0
Stars
306
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

ʆ 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.

Keywords