Neurological Phenomenon Multiplexer
    Wondering what’s next for npm?Check out our public roadmap! »

    find-line-column

    0.5.2 • Public • Published

    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

    Install

    npm i find-line-column

    DownloadsWeekly Downloads

    77,716

    Version

    0.5.2

    License

    MIT

    Last publish

    Collaborators

    • avatar