{"action":"created","issue":{"url":"https://api.github.com/repos/kpdecker/jsdiff/issues/91","repository_url":"https://api.github.com/repos/kpdecker/jsdiff","labels_url":"https://api.github.com/repos/kpdecker/jsdiff/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/kpdecker/jsdiff/issues/91/comments","events_url":"https://api.github.com/repos/kpdecker/jsdiff/issues/91/events","html_url":"https://github.com/kpdecker/jsdiff/issues/91","id":117323168,"number":91,"title":"Position of difference?","user":{"login":"Eisenspalter","id":4734410,"avatar_url":"https://avatars.githubusercontent.com/u/4734410?v=3","gravatar_id":"","url":"https://api.github.com/users/Eisenspalter","html_url":"https://github.com/Eisenspalter","followers_url":"https://api.github.com/users/Eisenspalter/followers","following_url":"https://api.github.com/users/Eisenspalter/following{/other_user}","gists_url":"https://api.github.com/users/Eisenspalter/gists{/gist_id}","starred_url":"https://api.github.com/users/Eisenspalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eisenspalter/subscriptions","organizations_url":"https://api.github.com/users/Eisenspalter/orgs","repos_url":"https://api.github.com/users/Eisenspalter/repos","events_url":"https://api.github.com/users/Eisenspalter/events{/privacy}","received_events_url":"https://api.github.com/users/Eisenspalter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-17T10:16:09Z","updated_at":"2016-05-11T11:12:55Z","closed_at":null,"body":"How can I get the absolute position of the difference?"},"comment":{"url":"https://api.github.com/repos/kpdecker/jsdiff/issues/comments/218429712","html_url":"https://github.com/kpdecker/jsdiff/issues/91#issuecomment-218429712","issue_url":"https://api.github.com/repos/kpdecker/jsdiff/issues/91","id":218429712,"user":{"login":"pedro93","id":3718654,"avatar_url":"https://avatars.githubusercontent.com/u/3718654?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro93","html_url":"https://github.com/pedro93","followers_url":"https://api.github.com/users/pedro93/followers","following_url":"https://api.github.com/users/pedro93/following{/other_user}","gists_url":"https://api.github.com/users/pedro93/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro93/subscriptions","organizations_url":"https://api.github.com/users/pedro93/orgs","repos_url":"https://api.github.com/users/pedro93/repos","events_url":"https://api.github.com/users/pedro93/events{/privacy}","received_events_url":"https://api.github.com/users/pedro93/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T11:12:55Z","updated_at":"2016-05-11T11:12:55Z","body":"+1 for this.\r\n\r\nFor example, given this code snippet:\r\n```js\r\njsdiff.diffChars(\"please authenticate\", \"now you may authenticate\");\r\n```\r\n\r\nThe output is:\r\n```js\r\n[ { count: 3, added: undefined, removed: true, value: 'ple' },\r\n  { count: 9, added: true, removed: undefined, value: 'now you m' },\r\n  { count: 1, value: 'a' },\r\n  { count: 2, added: undefined, removed: true, value: 'se' },\r\n  { count: 1, added: true, removed: undefined, value: 'y' },\r\n  { count: 13, value: ' authenticate' } ]\r\n```\r\nWith the information given, how can we know where in the initial string (\"please authenticate\") to apply the diff operations?"}}