0.1.1 • Published 9 years ago
context-lines v0.1.1
Install
npm install context-lines --save
Basic usage
var contextLines = require('context-lines');
var context = contextLines(5);
/* {
endIndex: 7,
endLine: 8,
errIndex: 4,
errLine: 5,
lineCount: 7,
startIndex: 1,
startLine: 2
} */