locate-character
Get the line and column number of a specific character in a string
strip-comments
Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.
line-number
Get the line number for each regex match found in a string.
linenumber
Get the line number of one or more matches in a file