Data Extractor icon

Data Extractor

5

Extracts embedded data and SVG components from TypeScript/JavaScript source code into structured JSON and SVG files.

About

Data Extractor is a Model Context Protocol (MCP) server that streamlines the process of migrating data, such as i18n translations and key-value configurations, out of TypeScript/JavaScript code and into manageable JSON configuration files. It also extracts SVG components from React/TypeScript/JavaScript files, removing React-specific code and saving them as individual .svg files. This separation of concerns simplifies code maintenance, improves data management, and promotes a cleaner architecture by moving data and assets into dedicated configuration files.

Key Features

  • Extracts string literals, template literals, and complex nested objects from TypeScript/JavaScript code.
  • Replaces source file content with a configurable migration message after successful extraction.
  • Extracts SVG components, removes React-specific code, and saves them as individual .svg files.
  • Supports extending the supported patterns by modifying the source code.
  • Preserves template variables and nested object structures with dot notation.
  • 4 GitHub stars

Use Cases

  • Migrating i18n translations from code to JSON files.
  • Extracting and managing SVG components as individual assets.
  • Centralizing key/value configurations in JSON files for easier management.
Craft Better Prompts with AnyPrompt
Sponsored