Have ideas to improve npm?Join in the discussion! »

    explainjs

    0.0.9 • Public • Published

    ExplainJS

    Generate a side-by-side view of your comments and code. Works on JavaScript files, CSS, and other similar languages.

    More info at http://www.explainjs.com

    var explainjs = require('explainjs');
    
    var js = '//My Library\n doSomething();';
    
    explainjs(js, function(error, results){
      // <p>My Library</p>
      console.log(results.sections[0].comments);
    
      // doSomething();
      console.log(results.sections[0].code);
    });
    

    Here's how it looks:

    ExplainJS Screenshot

    Keywords

    none

    Install

    npm i explainjs

    DownloadsWeekly Downloads

    2

    Version

    0.0.9

    License

    MIT/X11

    Last publish

    Collaborators

    • avatar