Senzing Node.js SDK
    Preparing search index...
    • Lists all data sources defined in the configuration. Returns a JSON string containing an array of data source objects.

      Parameters

      • configJson: string

        The current configuration as a JSON string.

      Returns string

      A JSON string representing an array of data source objects.

      import { listDataSources } from "@senzing/configtool";

      const sources = JSON.parse(listDataSources(configJson));
      for (const ds of sources) {
      console.log(`${ds.DSRC_CODE} (id: ${ds.DSRC_ID})`);
      }