0.1.1 • Published 9 years ago

context-lines v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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
} */
0.1.1

9 years ago

0.1.0

9 years ago