{"id":18455736,"url":"https://github.com/danmarshall/svg-path-outline","last_synced_at":"2026-01-24T10:02:30.154Z","repository":{"id":57375543,"uuid":"79053088","full_name":"danmarshall/svg-path-outline","owner":"danmarshall","description":"Create an outline surrounding an SVG path","archived":false,"fork":false,"pushed_at":"2024-02-20T21:24:13.000Z","size":107,"stargazers_count":73,"open_issues_count":5,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-10T12:44:46.608Z","etag":null,"topics":["drawing","maker","outline","svg","svg-path"],"latest_commit_sha":null,"homepage":"https://danmarshall.github.io/svg-path-outline/browser","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danmarshall.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-15T19:05:52.000Z","updated_at":"2025-08-07T02:23:31.000Z","dependencies_parsed_at":"2025-02-16T14:45:38.513Z","dependency_job_id":"b437c922-a689-49d5-818c-fd5dfb3a80c1","html_url":"https://github.com/danmarshall/svg-path-outline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danmarshall/svg-path-outline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmarshall%2Fsvg-path-outline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmarshall%2Fsvg-path-outline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmarshall%2Fsvg-path-outline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmarshall%2Fsvg-path-outline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danmarshall","download_url":"https://codeload.github.com/danmarshall/svg-path-outline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danmarshall%2Fsvg-path-outline/sbom","scorecard":{"id":321236,"data":{"date":"2025-08-11","repo":{"name":"github.com/danmarshall/svg-path-outline","commit":"c067626ac34b82b98eefafb8d83071349d991b4b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"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":"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":-1,"reason":"internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: non-200 OK status code: 502 Bad Gateway body: \"\u003chtml\u003e\\r\\n\u003chead\u003e\u003ctitle\u003e502 Bad Gateway\u003c/title\u003e\u003c/head\u003e\\r\\n\u003cbody\u003e\\r\\n\u003ccenter\u003e\u003ch1\u003e502 Bad Gateway\u003c/h1\u003e\u003c/center\u003e\\r\\n\u003chr\u003e\u003ccenter\u003enginx\u003c/center\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\"","details":null,"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T01:24:39.920Z","repository_id":57375543,"created_at":"2025-08-18T01:24:39.920Z","updated_at":"2025-08-18T01:24:39.920Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28724374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"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":["drawing","maker","outline","svg","svg-path"],"created_at":"2024-11-06T08:08:52.470Z","updated_at":"2026-01-24T10:02:30.137Z","avatar_url":"https://github.com/danmarshall.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svg-path-outline\n\nCreate an outline surrounding an SVG path\n\n![Image of example outlines](example.png)\n\nA stroke is typically used to outline an SVG element. Use this package if you need an actual SVG path instead. When corners are outlined, you have the option of specifying the style of joint: round, square, or beveled. \n\nLive demo: https://danmarshall.github.io/svg-path-outline/browser\n\n## Installation\n\n### Node\n\n```\nnpm install svg-path-outline --save\n```\n\n### Browser\n\n```html\n\u003cscript src=\"https://pomax.github.io/bezierjs/bezier.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://microsoft.github.io/maker.js/target/js/browser.maker.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://danmarshall.github.io/svg-path-outline/browser/index.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```js\nvar spo = require('svg-path-outline');\n\nvar outline = spo(svgData, distance, options);\n```\n\n## Parameters\n\n### svgData\n\nInput is a string of either SVG `path` data, or point coordinates from SVG `polyline` or `polygon`.\n\n### distance\n\nNumeric distance to offset the outline.\n\n### options\n\nObject with these optional properties:\n\n| option | type | default | description |\n|---|---|---|---|\n| joints | number | 0 | 0 - round joints\u003cbr/\u003e1 - miter\u003cbr/\u003e2 - bevel |\n| bezierAccuracy | number | 0.5 | Distance of accuracy for Bezier curves. A lower number is more accurate but requires more computation. Using zero is not recommended as it may never finish computing. This number is relative to the unit system of your SVG; so if you are rendering pixels, then 0.5 is accurate to half a pixel. |\n| inside | boolean | false | Add offset lines on the inside of the shape |\n| outside | boolean | true | Add offset lines on the outside of the shape |\n| tagName | string | 'path' | SVG tag name of the type of data:\u003cbr/\u003e'path' - SVG path language\u003cbr/\u003e'polygon' - point coordinates, closed shape\u003cbr/\u003e'polyline' - point coordinates, open shape |\n\n### return value\n\nOutput is a string of SVG `path` data.\n\n## Examples\n\nSimple example in JavaScript:\n\n```js\nvar spo = require('svg-path-outline');\nvar svgData = \"M 95 35 L 59 35 L 48 0 L 36 35 L 0 35 L 29 56 L 18 90 L 48 69 L 77 90 L 66 56 Z\";\nvar outline = spo(svgData, 10);\n```\n\nExample in HTML:\n\n```html\n\u003csvg id=\"star\" fill=\"none\" stroke=\"black\"\u003e\n \u003cpath d=\"M 95 35 L 59 35 L 48 0 L 36 35 L 0 35 L 29 56 L 18 90 L 48 69 L 77 90 L 66 56 Z\" /\u003e\n\u003c/svg\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n var spo = require('svg-path-outline');\n var starPath = document.querySelector('#star path');\n var d = starPath.getAttribute('d');\n var outline = spo(d, 10);\n starPath.setAttribute('d', d + outline);\n\u003c/script\u003e\n```\n\n## License\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanmarshall%2Fsvg-path-outline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanmarshall%2Fsvg-path-outline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanmarshall%2Fsvg-path-outline/lists"}