diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -98,9 +98,21 @@ function LineCounter(contents) {
                 eolIndex = contents.length - 1;
             }
         }
-
         return currentLine;
     }
+
+    /**
+     * Returns the location (line-nr and column-nr) of a char index
+     * within the string.
+     * @returns {{column: number, line: number}
+     */
+    this.locate = function(charIndex) {
+        var line = this.countUpTo(charIndex);
+        return {
+            column: charIndex - startOfLineIndex,
+            line: line
+        }
+    }
 }
 
 module.exports = LineCounter;
"locate"-function to return line and column-number of a char-index