Go to repository
Internal

Function jsToJson

Convert a set of .js files in CJS format into a matching JSON files through evaluation. Execute the callback with the converted file paths after all files were converted.

Parameters

  • files: string[]

    The js files to convert to json files

  • callback: ((created: string[]) => void)

    The callback to execute after conversion.

      • (created): void
      • Parameters

        • created: string[]

        Returns void

Returns void