{"id":13659381,"url":"https://github.com/bendrucker/inline-htmlify","last_synced_at":"2025-10-29T18:03:16.256Z","repository":{"id":57274119,"uuid":"44153339","full_name":"bendrucker/inline-htmlify","owner":"bendrucker","description":"Stream JS code in and get an HTML document out","archived":false,"fork":false,"pushed_at":"2019-08-19T22:01:37.000Z","size":15,"stargazers_count":9,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T11:47:16.388Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendrucker.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}},"created_at":"2015-10-13T05:10:07.000Z","updated_at":"2022-01-29T05:56:33.000Z","dependencies_parsed_at":"2022-09-17T10:12:55.905Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/inline-htmlify","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bendrucker/inline-htmlify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Finline-htmlify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Finline-htmlify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Finline-htmlify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Finline-htmlify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/inline-htmlify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Finline-htmlify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270803531,"owners_count":24648688,"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-17T02:00:09.016Z","response_time":129,"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-08-02T05:01:08.105Z","updated_at":"2025-10-29T18:03:16.153Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# inline-htmlify [![Build Status](https://travis-ci.org/bendrucker/inline-htmlify.svg?branch=master)](https://travis-ci.org/bendrucker/inline-htmlify) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/inline-htmlify.svg)](https://greenkeeper.io/)\n\n\u003e Stream JS code in and get an HTML document out\n\n\n## Install\n\n```\n$ npm install --save inline-htmlify\n```\n\n\n## Usage\n\n```js\nvar htmlify = require('inline-htmlify')\n\nbrowserify('app.js')\n  .pipe(htmlify())\n  .pipe(fs.createWriteStream('index.html'))\n```\n\n```sh\nbrowserify app.js | htmlify \u003e index.html\n```\n\nOr using a custom document (`doc.html`):\n\n\n```js\nbrowserify('app.js')\n  .pipe(htmlify(fs.createReadStream('doc.html')))\n  .pipe(fs.createWriteStream('index.html'))\n```\n\n```sh\ncat script.js | htmlify doc.html \u003e index.html\n```\n\nThe html file `doc.html` should have a `\u003cscript\u003e` tag with the attribute `inline-htmlify`:\n\n```html\n\u003cscript inline-htmlify\u003e\u003c/script\u003e\n```\n\n## API\n\n#### `htmlify(document)` -\u003e `stream`\n\nReturns a stream that takes in JavaScript and wraps it in an HTML document.\n\n##### document\n\nA streaming HTML document. The script will be inserted inside a `\u003cscript inline-htmlify\u003e\u003c/script\u003e` tag. The attribute is used to locate the insertion point and is removed from the final output.\n\nType: `stream`  \nDefault: stream of [`document.html`](document.html)\n\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Finline-htmlify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Finline-htmlify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Finline-htmlify/lists"}