0.5.2 • Published 10 years ago

find-line-column v0.5.2

Weekly downloads
93,277
License
MIT
Repository
github
Last release
10 years ago

Build Status devDependencies NPM version

find-line-column

npm module for finding the line/column position in a string

Install

npm install find-line-column

Use

var position = require('find-line-column')("This sentence is short.\nThis one is too.", 29);
// position -> [{ line: 2, col: 5 }]

License

MIT