{"id":17770710,"url":"https://github.com/ajainvivek/tiny-print","last_synced_at":"2026-02-17T15:02:02.086Z","repository":{"id":36143373,"uuid":"221619827","full_name":"ajainvivek/tiny-print","owner":"ajainvivek","description":"🖨️ Tiny print is a tiny javascript library to help printing HTML element.","archived":false,"fork":false,"pushed_at":"2023-01-05T00:52:08.000Z","size":2262,"stargazers_count":2,"open_issues_count":38,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T19:19:38.379Z","etag":null,"topics":["html","print-html","print-js","tiny-print"],"latest_commit_sha":null,"homepage":"https://tiny-print.netlify.com/","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/ajainvivek.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":"SECURITY.md","support":null}},"created_at":"2019-11-14T05:35:27.000Z","updated_at":"2022-08-03T11:51:19.000Z","dependencies_parsed_at":"2023-01-16T22:51:49.587Z","dependency_job_id":null,"html_url":"https://github.com/ajainvivek/tiny-print","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ajainvivek/tiny-print","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajainvivek%2Ftiny-print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajainvivek%2Ftiny-print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajainvivek%2Ftiny-print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajainvivek%2Ftiny-print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajainvivek","download_url":"https://codeload.github.com/ajainvivek/tiny-print/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajainvivek%2Ftiny-print/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29548201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["html","print-html","print-js","tiny-print"],"created_at":"2024-10-26T21:24:54.015Z","updated_at":"2026-02-17T15:02:02.070Z","avatar_url":"https://github.com/ajainvivek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://ajainvivek.github.io/tiny-print/\" target=\"_blank\"\u003e\n\u003cimg alt=\"TinyPrint\" title=\"TinyPrint\" src=\"https://image.flaticon.com/icons/svg/1497/1497542.svg\" height=\"100\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003eA tiny javascript print library (less than 1kb) to help printing targeted HTML element.\u003c/p\u003e\n\n## Installation\n\nTinyPrint is available as an [npm package](https://www.npmjs.com/package/tiny-print).\n\n```sh\nnpm install tiny-print --save\n```\n\n## Usage\n\n```js\nimport tinyPrint from \"tiny-print\";\n\ntinyPrint(element, {\n  scanStyles: BOOLEAN, // Default: true, scans computed styles from dom for that specific node, recommended for fixed height/width \n  scanHTML: BOOLEAN, // Default: false, scans styles and links from current html page, disable scanStyles if scanHTML is enabled\n  importStyles: ARRAY, // Default: [], imports external stylesheet eg: https://cdn.com/style.css\n  cssStyle: STRING, // Default: '', custom css styles eg; `.title { font-size: 14px; }`\n  hidePageRule: BOOLEAN // Default: false, hide print page rule i.e page title, footer etc\n});\n```\n\n## Demo\n\nPlease refer the [DEMO](https://tiny-print.netlify.com).\n\n## Contributing\n\nWe'd greatly appreciate any contribution you make. :D\n\n## License\n\nThis project is licensed under the terms of the\n[MIT license](https://github.com/ajainvivek/tiny-print/blob/v1-beta/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajainvivek%2Ftiny-print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajainvivek%2Ftiny-print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajainvivek%2Ftiny-print/lists"}