{"id":19632911,"url":"https://github.com/foundation/foundation-web-inliner","last_synced_at":"2025-08-24T10:20:02.391Z","repository":{"id":46690931,"uuid":"53095535","full_name":"foundation/foundation-web-inliner","owner":"foundation","description":"Web inliner for get.foundation.com.","archived":false,"fork":false,"pushed_at":"2022-11-07T20:42:22.000Z","size":18,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-28T07:40:11.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foundation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-04T00:49:44.000Z","updated_at":"2023-02-11T11:00:49.000Z","dependencies_parsed_at":"2023-01-22T04:50:04.961Z","dependency_job_id":null,"html_url":"https://github.com/foundation/foundation-web-inliner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/foundation/foundation-web-inliner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-web-inliner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-web-inliner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-web-inliner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-web-inliner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foundation","download_url":"https://codeload.github.com/foundation/foundation-web-inliner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundation%2Ffoundation-web-inliner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271844327,"owners_count":24832743,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-11T12:15:44.245Z","updated_at":"2025-08-24T10:20:02.294Z","avatar_url":"https://github.com/foundation.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Inliner\n\nThis is the [web inliner](http://foundation.zurb.com/emails/inliner.html) used on the Foundation for Emails marketing site. The files generated here are copied to the Foundation marketing site codebase.\n\n## API\n\n`index.js` has DOM-specific functions that leverage the web inliner's guts. It should be Browserified to run in the browser. `lib/inline.js` is the inliner itself, and can be run in Node.\n\n### inline(html, css, options)\n\nInline the contents of `html`, along with any code inside `css`.\n\n#### html\n\n**Type:** `String`\n\nHTML to inline.\n\n#### css\n\n**Type:** `String`\n\nCSS to inline into HTML.\n\n#### options\n\n**Type:** `Object`\n\n- `compress` (`Boolean`): Compress final HTML output.\n- `onSuccess` (`Function`): Callback to run when inlining is done. Includes an `html` parameter with the output.\n- `onError` (`Function`): Callback to run if there's an error. Includes an `err` parameter with the error.\n\n## Development\n\n```bash\ngit clone https://github.com/zurb/web-inliner\ncd web-inliner\nnpm install\n```\n\nRun `npm start` to start the build process. A new JavaScript bundle will be generated each time you save `index.js`.\n\nRun `npm run build` to generate a compressed bundle. Use this compressed file on the Foundation marketing site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoundation%2Ffoundation-web-inliner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoundation%2Ffoundation-web-inliner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoundation%2Ffoundation-web-inliner/lists"}