Riline.js
Utility for logging lines of code from a text string (or file).
Hot to use
Initialized riline object constructor gets text string as a parameter, then you can log parts of this text string in a console with some warning messages.
Riline = require'../src/riline'fs = require 'fs' text = fsreadFileSync'./my_text_file.txt'toStringriline = text rilineaddMessage type: 'warning' startLine: 10 endLine: 15 message: 'Somethin is wrong in this lines' rilineaddMessage type: 'warning' startLine: 50 message: 'This will highlight only one line' # it will print all added messages in console with related pieces of text rilineprintMessages