string-delim-diff

1.1.2 • Public • Published

string-delim-diff

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

build status

Installation

This module is installed via npm:

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

Package Sidebar

Install

npm i string-delim-diff

Weekly Downloads

1

Version

1.1.2

License

BSD-3-Clause

Unpacked Size

7.34 kB

Total Files

7

Last publish

Collaborators

  • noblesamurai
  • eugeneware
  • jacob-samurai
  • aeh
  • timlesallen