Skip to content

A web-based tool that combines separate HTML, CSS, and JavaScript files into a single unified HTML file through drag-and-drop or Puter folder selection, with options to copy, download, or save the result.

License

Notifications You must be signed in to change notification settings

Puter-Apps/code-joiner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Combine separate HTML, CSS, and JavaScript files into a single, self-contained HTML file.

Screenshot


Features

  • Automatic Code Combination: Merges separate HTML, CSS, and JavaScript files into one HTML file
  • Proper Code Embedding: Inserts CSS in style tags and JavaScript in script tags
  • Drag & Drop Interface: Simple file upload with drag and drop functionality
  • Puter Integration: Load files from and save files to your Puter cloud storage
  • Live Preview: View the combined code running in a sandboxed environment
  • Code Visualization: View the combined code with syntax highlighting
  • Download Option: Save the combined file to your local device
  • Copy to Clipboard: Easily copy the entire combined code
  • Modern UI: Clean, responsive interface that works on all devices

Getting Started

Clone the repository:

git clone https://github.com/puter-apps/code-joiner.git

Access the src/index.html file via a local server or an online host


How It Works

HTML5 Code Joiner leverages Puter.js to provide a seamless web-based code combination experience:

  1. File Loading: Upload files via drag & drop or load them from Puter cloud storage
  2. Code Merging: Intelligently combines separate files into a single HTML document
  3. File System Integration: Employs Puter's file system API to save generated files
  4. Authentication: Utilizes Puter's authentication system for secure cloud storage
  5. Preview Generation: Creates a sandboxed preview environment to test the combined code

Companion App

Code Joiner works as a companion to Code Splitter, which performs the reverse operation - extracting CSS and JavaScript from a combined HTML file into separate files.


License

MIT

About

A web-based tool that combines separate HTML, CSS, and JavaScript files into a single unified HTML file through drag-and-drop or Puter folder selection, with options to copy, download, or save the result.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •