Schema.org Adapter
    Preparing search index...

    Function getLatestSchemaVersion

    • Returns the latest version identifier for the schema.org vocabulary. The internal cache is used for this function. If you want to reset the cache, use the function .fetchSchemaVersions().

      Parameters

      Returns Promise<string>

      The latest version of the schema.org vocabulary

      const { SOA } = require("schema-org-adapter");
      const latestSchemaVersion = await SOA.getLatestSchemaVersion();
      // get the latest schema.org vocabulary version identifier
      "13.0"