{"id":21915531,"url":"https://github.com/terotests/evg","last_synced_at":"2026-03-11T08:32:45.097Z","repository":{"id":32444068,"uuid":"134069750","full_name":"terotests/evg","owner":"terotests","description":"Elastic View Graphics","archived":false,"fork":false,"pushed_at":"2025-12-13T00:13:28.000Z","size":7618,"stargazers_count":0,"open_issues_count":11,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T22:53:17.414Z","etag":null,"topics":["javascript","node","pdf","svg","xml"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/terotests.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-19T14:35:01.000Z","updated_at":"2025-12-12T23:49:52.000Z","dependencies_parsed_at":"2025-08-08T04:24:07.738Z","dependency_job_id":"ad7b9f10-8f35-43a9-9317-026d9c5dc3c8","html_url":"https://github.com/terotests/evg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/terotests/evg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Fevg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Fevg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Fevg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Fevg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terotests","download_url":"https://codeload.github.com/terotests/evg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terotests%2Fevg/sbom","scorecard":{"id":874562,"data":{"date":"2025-08-11","repo":{"name":"github.com/terotests/evg","commit":"0fbf22454585fac4ab56adcd02a9af20dd043112"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-v2mw-5mch-w8c5","Warn: Project is vulnerable to: GHSA-p3vf-v8qc-cwcr","Warn: Project is vulnerable to: GHSA-gx9m-whjm-85jf","Warn: Project is vulnerable to: GHSA-mmhx-hmjr-r674","Warn: Project is vulnerable to: GHSA-vhxf-7vqr-mrjg","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-w532-jxjh-hjhj","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T05:28:49.782Z","repository_id":32444068,"created_at":"2025-08-24T05:28:49.782Z","updated_at":"2025-08-24T05:28:49.782Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30376309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: 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":["javascript","node","pdf","svg","xml"],"created_at":"2024-11-28T19:12:39.662Z","updated_at":"2026-03-11T08:32:45.075Z","avatar_url":"https://github.com/terotests.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EVG\n\nLayout engine to create vector graphics (like PDF) using JavaScript and XML based declarative markup.\n\n```s\nnpm i -g evg\n```\n\nExample of markup:\n```html\n\u003cdiv\u003e\n  \u003cdiv padding=\"20\"\u003e\n    \u003cQRCode text=\"https://github.com/terotests/evg\" width=\"20%\" height=\"20%\"/\u003e\n    \u003cdiv width=\"80%\" padding=\"20\"\u003e\n    Here is your personal QR code\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nSee `hello.xml` and `hello.pdf` to get started quickly.\n \nThe engine supports following commands (and more):\n\n- `div`, `img` and `path` for common layout elements\n- `color`, `background-color`, `border-color`, `opacity`\n- `border-width`, `border-radius`\n- basic `padding`, `margin`, `margin-top` etc. supported\n- units `px`, `%` (%of available width) or `hp` (% of height)\n- width, height as `50%` or `50` or `50px`, `\n- text can be added like `\u003cdiv\u003eHello World\u003c/div\u003e`\n- `font-size`, `font-family` can be used to specify TTF fonts used (or `fonts/` dir for CLI)\n- horizontal align `align=center`, `align=left`, `align=right`\n- absolute positioning `top` and `left`, `bottom`, `right`\n- flag `overflow=\"hidden\"` for View and Path elements \n\nExtra features include:\n\n- support for QR codes using `\u003cQRCode text=\"foobar\"/\u003e`\n- `page-break` to change pages\n- `footer` and `header` to specify page header and footer\n- `\u003ccomponent id=\"\"\u003e\u003c/component\u003e` to declare re-usable components\n- `id=\"content\"` to hold component contents\n- `\u003cpath d=\"\"/\u003e` elements which can contain SVG path are scaled automatically to fit viewport\n\n## Command line\n\nRunning from command line\n```\nevg hello.xml hello.pdf\n```\n\nSubdirectories:\n- `fonts/` can include TTF files\n- `components/` can include XML components which are used in the file. \n\nComponents can use `id=\"content\"` to indicate place for child nodes.\n\nThe .git reposity has example directory `testfiles/` where is example XML file.\n\n## Using as library \n\nElastic View Graphics\n\n```javascript\nimport {EVG} from 'evg'\n\n// you have to install some fonts...\nEVG.installFont('candal', '../evg/fonts/Candal/Candal.ttf')\n\n// create a text element component....\nEVG.installComponent('t', `\u003cLabel font-family=\"candal\" background-color=\"blue\" /\u003e`)\n\n// create node and render it to PDF\nconst node = new EVG(`\u003cView\u003e\n  \u003ct text=\"Hello World!\"/\u003e\n\u003c/View\u003e\n`)\nEVG.renderToFile('./out.pdf', 600,800, node)\n\n// or render to stream \nconst fs = require('fs')\nEVG.renderToStream(fs.createWriteStream('fileName.pdf'), 600,800, node)\n```\n\n## Creating own components using inline XML\n\nYou can define own components, which receive the child elements under a certain tag.\n\nTo define your own custom `\u003ch1\u003eHello\u003c/h1\u003e` component as inline XML like this\n\n```html\n\u003ccomponent id=\"h1\"\u003e\n  \u003cdiv margin-top=\"10\" margin-bottom=\"20\" margin-left=\"20\"\u003e\n    \u003cdiv font-size=\"28\" color=\"#666\" id=\"content\"/\u003e\n  \u003c/div\u003e\n\u003c/component\u003e \n```\nThe `id=\"content\"` marks the spot where component children are to be inserted.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterotests%2Fevg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterotests%2Fevg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterotests%2Fevg/lists"}