{"id":16777036,"url":"https://github.com/fb55/inline","last_synced_at":"2025-12-17T22:43:00.126Z","repository":{"id":5436238,"uuid":"6628851","full_name":"fb55/inline","owner":"fb55","description":"inline all images, stylesheets and scripts of a webpage","archived":false,"fork":false,"pushed_at":"2024-04-08T13:25:26.000Z","size":316,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-11T01:47:09.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fb55.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2012-11-10T15:19:36.000Z","updated_at":"2024-12-29T19:43:14.000Z","dependencies_parsed_at":"2024-01-04T21:42:27.995Z","dependency_job_id":null,"html_url":"https://github.com/fb55/inline","commit_stats":null,"previous_names":["fb55/node-inline"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fb55%2Finline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fb55%2Finline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fb55%2Finline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fb55%2Finline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fb55","download_url":"https://codeload.github.com/fb55/inline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239389573,"owners_count":19630308,"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-10-13T07:11:42.783Z","updated_at":"2025-12-17T22:42:55.066Z","avatar_url":"https://github.com/fb55.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inline\n\ninline all images, stylesheets and scripts of a webpage.\n\nThis is a (partial) port of [`remy/node-inliner`](https://github.com/remy/inliner) to my [`htmlparser2`](http://npm.im/htmlparser) module.\n\n#### installation\n\n    npm i inline\n\n#### usage\n\n```js\nconst Inline = require(\"inline\");\nconst minreq = require(\"minreq\");\n\nminreq.get(\"http://feedic.com/\").pipe(\n    new Inline(\n        \"http://feedic.com/\",\n        {\n            // Default options:\n            images: true, // Inline images\n            scripts: true, // Inline scripts\n            stylesheets: true, // Inline stylesheets\n        },\n        (err, data) =\u003e {\n            if (err) throw err;\n            require(\"fs\").writeFileSync(\"index.html\", data);\n        }\n    )\n);\n```\n\n#### todo\n\n`inline` currently doesn't minify inlined scripts \u0026 stylesheets, and also doesn't support gzip compressed sources. At least support for gzip compression is planned.\n\n---\n\nLicense: BSD-like\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffb55%2Finline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffb55%2Finline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffb55%2Finline/lists"}