{"id":25053599,"url":"https://github.com/dills122/weasyprint-wrapper","last_synced_at":"2025-08-04T06:16:00.778Z","repository":{"id":45014483,"uuid":"210743256","full_name":"dills122/weasyprint-wrapper","owner":"dills122","description":"weasyprint node wrapper","archived":false,"fork":false,"pushed_at":"2022-01-14T04:24:44.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T04:01:51.992Z","etag":null,"topics":["cli-wrapper","nodejs","pdf","pdf-generator","weasyprint","wrapper"],"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/dills122.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":"2019-09-25T02:59:06.000Z","updated_at":"2022-02-05T01:41:40.000Z","dependencies_parsed_at":"2022-09-04T22:22:03.645Z","dependency_job_id":null,"html_url":"https://github.com/dills122/weasyprint-wrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dills122/weasyprint-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dills122%2Fweasyprint-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dills122%2Fweasyprint-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dills122%2Fweasyprint-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dills122%2Fweasyprint-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dills122","download_url":"https://codeload.github.com/dills122/weasyprint-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dills122%2Fweasyprint-wrapper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268657562,"owners_count":24285528,"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-04T02:00:09.867Z","response_time":79,"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":["cli-wrapper","nodejs","pdf","pdf-generator","weasyprint","wrapper"],"created_at":"2025-02-06T11:39:54.157Z","updated_at":"2025-08-04T06:16:00.716Z","avatar_url":"https://github.com/dills122.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weasyprint Wrapper\n\n[![CodeFactor](https://www.codefactor.io/repository/github/dills122/weasyprint-wrapper/badge)](https://www.codefactor.io/repository/github/dills122/weasyprint-wrapper)\n\nA node wrapper module for use with the weasyprint cli\n\nThis module was a copy of this [repo](https://github.com/tdzienniak/node-weasyprint) with minor updates and reuploaded back to npm.\n\n\nTo install\n\n```\nnpm i weasyprint-wrapper\n```\n\nExample use\n\n```javascript\nconst weasyprint = require('weasyprint-wrapper');\n\n//specify the location of weasyprint cli if not in PATH\nweasyprint.command = '~/programs/weasyprint';\n\n// URL\nweasyprint('http://google.com/', { pageSize: 'letter' })\n  .pipe(fs.createWriteStream('out.pdf'));\n  \n// HTML\nweasyprint('\u003ch1\u003eTest\u003c/h1\u003e\u003cp\u003eHello world\u003c/p\u003e')\n  .pipe(res);\n\n// Stream input and output\nvar stream = weasyprint(fs.createReadStream('file.html'));\n\n// output to a file directly\nweasyprint('http://apple.com/', { output: 'out.pdf' });\n\n// Optional callback\nweasyprint('http://google.com/', { pageSize: 'letter' }, function (err, stream) {\n  // do whatever with the stream\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdills122%2Fweasyprint-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdills122%2Fweasyprint-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdills122%2Fweasyprint-wrapper/lists"}