Gathering detailed insights and metrics for tiny-svg
Gathering detailed insights and metrics for tiny-svg
Gathering detailed insights and metrics for tiny-svg
Gathering detailed insights and metrics for tiny-svg
npm install tiny-svg
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
49 Stars
123 Commits
15 Forks
11 Watching
2 Branches
10 Contributors
Updated on 17 Oct 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
7.7%
15,829
Compared to previous day
Last week
14.7%
85,575
Compared to previous week
Last month
3.5%
337,013
Compared to previous month
Last year
37.9%
3,546,120
Compared to previous year
tiny-svg is a minimal toolbelt for creating clean SVG applications.
2kB
minified + gzippedinnerSVG
supportCheckout provided utilities.
1import { 2 appendTo, 3 classes, 4 create, 5 innerSVG 6} from 'tiny-svg'; 7 8var container = document.createElement('div'); 9var element = appendTo(create('svg'), container); 10 11var g = appendTo(create('g'), element); 12 13// add classes, SVG style! 14classes(g).add('foo'); 15 16var text = ` 17 <g class="foo bar"> 18 <rect x="0" y="0" width="0" height="0" rx="50" ry="50"/> 19 </g> 20`; 21 22// set innerSVG 23innerSVG(g, text);
Your favourite module bundler should apply tree-shaking to only include the components your application requires. If you're using CommonJS modules give common-shake a try.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
4 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 3/21 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More