@huangchaowh/locus

    2.0.1 • Public • Published

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

    Install

    npm i @huangchaowh/locus

    DownloadsWeekly Downloads

    1

    Version

    2.0.1

    License

    LGPL-3.0

    Unpacked Size

    6.55 kB

    Total Files

    7

    Last publish

    Collaborators

    • huangchaowh