{"id":15831328,"url":"https://github.com/gadingnst/simple-print","last_synced_at":"2026-01-19T06:33:06.974Z","repository":{"id":35110362,"uuid":"207887233","full_name":"gadingnst/simple-print","owner":"gadingnst","description":"Simple Javascript utility to print HTML element easier.","archived":false,"fork":false,"pushed_at":"2023-01-04T10:00:17.000Z","size":431,"stargazers_count":1,"open_issues_count":22,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T07:20:29.367Z","etag":null,"topics":["element-print","html-print","javascript","print"],"latest_commit_sha":null,"homepage":"https://sutanlab.js.org/simple-print","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/gadingnst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"gadingnst","custom":["https://trakteer.id/gadingnst","https://karyakarsa.com/gadingnst"]}},"created_at":"2019-09-11T19:09:06.000Z","updated_at":"2022-10-22T11:34:36.000Z","dependencies_parsed_at":"2023-01-15T14:01:39.921Z","dependency_job_id":null,"html_url":"https://github.com/gadingnst/simple-print","commit_stats":null,"previous_names":["sutanlab/simple-print"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gadingnst/simple-print","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadingnst%2Fsimple-print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadingnst%2Fsimple-print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadingnst%2Fsimple-print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadingnst%2Fsimple-print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gadingnst","download_url":"https://codeload.github.com/gadingnst/simple-print/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadingnst%2Fsimple-print/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["element-print","html-print","javascript","print"],"created_at":"2024-10-05T12:02:13.675Z","updated_at":"2026-01-19T06:33:06.954Z","avatar_url":"https://github.com/gadingnst.png","language":"JavaScript","funding_links":["https://ko-fi.com/gadingnst","https://trakteer.id/gadingnst","https://karyakarsa.com/gadingnst"],"categories":[],"sub_categories":[],"readme":"# Simple Print\n\n[![GitHub](https://img.shields.io/github/license/sutanlab/simple-print)](https://github.com/sutanlab/simple-print) [![Build Status](https://travis-ci.org/sutanlab/simple-print.svg?branch=master)](https://travis-ci.org/sutanlab/simple-print) [![npm](https://img.shields.io/npm/dt/simple-print.svg)](https://www.npmjs.com/package/simple-print) [![npm](https://img.shields.io/bundlephobia/min/simple-print.svg)](https://unpkg.com/simple-print/lib/bundle/simple-print.min.js) [![GitHub issues](https://img.shields.io/github/issues/sutanlab/simple-print.svg)](https://github.com/sutanlab/simple-print/issues)\n\n\u003e Simple Javascript utility to print HTML element easier.\n\n## Getting started\n\n##### See [Demo Here](https://jsfiddle.net/sutanlab/d72ke1sL)\n\n### 1. Use Package with NPM or YARN with ES6 import\n\n```bash\n# with npm\n$ npm i simple-print --save\n\n# or with yarn\n$ yarn add simple-print\n```\n\n```js\nimport SimplePrint from 'simple-print'\n```\n\n### 2. With CDN\n\n```html\n\u003c!-- PRODUCTION BUILD --\u003e\n\u003cscript src=\"https://unpkg.com/simple-print/lib/bundle/simple-print.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- OR --\u003e\n\n\u003c!-- DEVELOPMENT BUILD --\u003e\n\u003cscript src=\"https://unpkg.com/simple-print/lib/bundle/simple-print.dev.js\"\u003e\u003c/script\u003e\n```\n\n## How to Use\n\n### Simple use \n```js\nvar print = new SimplePrint({\n    styles: [\n        'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css',\n        'assets/css/your.css'\n    ]\n})\n\nfunction btnClick() {\n    print.render(document.getElementById('element-to-print'))\n}\n```\n\n### With advanced options and callback\n```js\nvar element = document.getElementById('element-to-print') \n\nvar opts = {\n    name: '_blank',\n    specs: [\n        'fullscreen=yes',\n        'titlebar=yes',\n        'scrollbars=yes'\n    ],\n    styles: [\n        'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'\n    ]\n}\n\nvar print = new SimplePrint(opts)\n\nfunction btnClick() {\n    // you can assign your new options like this\n    print.options = {\n        styles: [\n            'your-path/other-style.css'\n        ]\n    }\n\n    print.render(element, function() {\n        console.log('Printing completed or was cancelled!')\n    })\n}\n```\n\n## Support Me\n### Global\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/gadingnst)\n### Indonesia\n- [Trakteer](https://trakteer.id/gadingnst)\n- [Karyakarsa](https://karyakarsa.com/gadingnst)\n\n---\n\nFeel free to contribute [simple-print](https://github.com/sutanlab/simple-print) 🙂\n\nCopyright © 2019 by Sutan Gading Fadhillah Nasution\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgadingnst%2Fsimple-print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgadingnst%2Fsimple-print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgadingnst%2Fsimple-print/lists"}