Skip to content

Takes two arrays of strings, differently delimited (but identical otherwise) and gives you the mapping between them.

License

Notifications You must be signed in to change notification settings

noblesamurai/string-delim-diff

Repository files navigation

string-delim-diff

Takes two arrays of strings, differently delimited (but identical otherwise) and gives you the mapping between them.

build status

Prerequisites

$ pip install pre-commit

Installation

This module is installed via npm:

$ pre-commit install --install-hooks
$ npm install string-delim-diff

Example Usage

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 }
]);

About

Takes two arrays of strings, differently delimited (but identical otherwise) and gives you the mapping between them.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •