{"id":15102861,"url":"https://github.com/tauri-apps/tauri-inliner","last_synced_at":"2025-09-27T00:31:54.455Z","repository":{"id":57164660,"uuid":"228714153","full_name":"tauri-apps/tauri-inliner","owner":"tauri-apps","description":"Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites","archived":true,"fork":true,"pushed_at":"2020-03-17T14:53:33.000Z","size":2460,"stargazers_count":13,"open_issues_count":6,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-13T20:53:14.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"remy/inliner","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tauri-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"MIT-LICENSE.TXT","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":"tauri","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-12-17T22:41:20.000Z","updated_at":"2023-05-20T04:22:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tauri-apps/tauri-inliner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Ftauri-inliner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Ftauri-inliner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Ftauri-inliner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauri-apps%2Ftauri-inliner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tauri-apps","download_url":"https://codeload.github.com/tauri-apps/tauri-inliner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219871549,"owners_count":16554426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-25T19:08:27.825Z","updated_at":"2025-09-27T00:31:49.094Z","avatar_url":"https://github.com/tauri-apps.png","language":"JavaScript","funding_links":["https://opencollective.com/tauri"],"categories":[],"sub_categories":[],"readme":"# Inliner\n\nTurns your web page to a single HTML file with everything inlined - perfect for appcache manifests on mobile devices that you want to reduce those http requests.\n\n[![Build Status](https://travis-ci.org/remy/inliner.svg)](https://travis-ci.org/remy/inliner)\n\n## What it does\n\n- Get a list of all the assets required to drive the page: CSS, JavaScript, images, videos and images used in CSS\n- Minify JavaScript (via [uglify-js](https://github.com/mishoo/UglifyJS \"mishoo/UglifyJS - GitHub\"))\n- Strips white from CSS\n- Base64 encode images and videos\n- Puts everything back together as a single HTML file with a simplfied doctype\n\n## Installation\n\nInstall the `inliner` utility via [npm](http://npmjs.org):\n\n    $ npm install -g inliner\n\n## Usage\n\nIf you have either installed via npm or put the inliner bin directory in your path, then you can use inliner via the command line as per:\n\n    inliner http://remysharp.com\n\nThis will output the inlined markup with default options. You can see more options on how to disable compression or how not to base64 encode images using the help:\n\n    inliner --help\n\nTo use inline inside your own script:\n\n    var Inliner = require('inliner');\n\n    new Inliner('http://remysharp.com', function (error, html) {\n      // compressed and inlined HTML page\n      console.log(html);\n    });\n\nOr:\n\n    var inliner = new Inliner('http://remysharp.com');\n\n    inliner.on('progress', function (event) {\n      console.error(event);\n    }).on('end', function (html) {\n      // compressed and inlined HTML page\n      console.log(html);\n    });\n\nOnce you've inlined the crap out of the page, you can optionally configure a [service worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers) to add advanced caching and offline functionality.\n\n## Support\n\n- Collapses all white space in HTML (except inside `\u003cpre\u003e` elements)\n- Strips all HTML comments\n- Pulls JavaScript and CSS inline to HTML\n- Compresses JavaScript via uglify (if not compressed already)\n- Converts all images and videos to based64 data urls, inline images, video poster images and CSS images\n- Imports all @import rules from CSS (recusively)\n- Applies media query rules (for print, tv, etc media types)\n- Leaves conditional comments in place\n- If JavaScript can't be imported (or is Google Analytics), source is not put inline\n\n## Limitations / Caveats\n\n- Whitespace compression might get a little heavy handed - all whitespace is collapsed from `n` spaces to 1 space.\n\n## Filing issues \u0026 PRs\n\nPlease see the [contributing](https://github.com/remy/inliner/blob/master/CONTRIBUTING.md) for guidelines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauri-apps%2Ftauri-inliner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftauri-apps%2Ftauri-inliner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauri-apps%2Ftauri-inliner/lists"}