Takes two arrays of strings, differently delimited (but identical otherwise) and gives you the mapping between them.
$ pip install pre-commit
This module is installed via npm:
$ pre-commit install --install-hooks
$ npm install string-delim-diff
var stringDelimDiff = require('string-delim-diff'),
expect = require('expect.js');
var out = map(['a', 'b c', 'd e f'], ['a b c', 'd e', 'f']);
expect(out).to.eql([
{ segments: ['a', 'b c'], more: false },
{ segments: ['d e'], more: true },
{ segments: ['f'], more: false }
]);