d08ble GitHub

LiveComment 2.10 - Node.js library for source code comments


LiveComment is very simple.

Live comment usage sample:

// File: app.jsx

// My code block - import section [

import async from "async";
import React from "react";
import Router from "react-router";

// My code block - import section ]

Install

npm install livecomment --save

Run node.js

$ node_modules/livecomment/bin/livecomment

View in browser

open http://localhost:3070/


Configure paths to sources
var LiveComment = require('livecomment')

var options = {
    debug: 1,
    common: {
      ignore: [
        '.git',
        '.git/**',
        'node_modules',
        'node_modules/**',
        'node_modules/**/.*',
        'node_modules/**/.*/**'
      ]
    },
    paths: ['/path/to/file', ...]
}

var livecomment = new LiveComment(options)