Skip to content

How to specify the second string? #636

Description

@grantspilsbury

This is a terribly stupid question...
If I have stringA "This is a stringA" and stringB "This is also a string"
How do I use the library to diff the 2 strings?

let output     = "",
prettydiff = require("prettydiff"),
options    = prettydiff.options;
options.source = stringA;
output         = prettydiff();

How do I specify the second string (stringB) to diff against?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions