Senzing Node.js SDK
    Preparing search index...
    • Lists all features defined in the configuration. Returns a JSON string containing an array of feature objects with their type codes, classes, and other properties.

      Parameters

      • configJson: string

        The current configuration as a JSON string.

      Returns string

      A JSON string representing an array of feature objects.

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

      const features = JSON.parse(listFeatures(configJson));
      for (const f of features.slice(0, 5)) {
      console.log(`${f.FTYPE_CODE} (class: ${f.FCLASS_CODE})`);
      }