Maps a line and column number to the index position of a string
Installation
$ npm install --save linecol2index
Usage
const linecol2index = ; const text = ; // "print("Hello, World!")\nprint("Goodbye!")"const line = 2const col = 1 const index = ;console // 'p'
License
ISC © Anthony Yang