Skip to content

JackMordaunt/inliner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inliner

Create a self contained html file that can be displayed correctly in a browser.

inliner is expected to be used with a build script that produces optimized output, such as yarn build. Optimizing css and js and fetching remote resources is outside the scope of this tool - at least for now.

Features

  • Parse valid html text input into a tree structure.
  • Replace all links with the content of the corresponding file from disk.
  • Render new html with inlined content.

Text files are embedded directly. Media files are embedded as base64 encoded data urls.

About

Create a self contained html file that can be displayed correctly in a browser.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages