Make package usable within JavaScript

Issue #4 resolved
Pascalis Maschke created an issue

For a project, I want to run the diff tool not within the CLI, but from my JavaScript code without using any additional CLI package.
Is there a workaround to accomplish this or an update in the near future?

Comments (3)

  1. Ben Sayers

    Hi @Pascalis Maschke

    This tool is already able to be called via a nodejs api, we just haven’t documented it in the readme.

    The details of the nodejs api can be found here:

    https://bitbucket.org/atlassian/openapi-diff/src/master/lib/api-types.d.ts

    Examples of the api being used can be found in our end to end tests:

    https://bitbucket.org/atlassian/openapi-diff/src/master/test/e2e/api.spec.ts

    Let me know if that suites your use case. I’ll make a note to add this info to the readme.

  2. Log in to comment