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
A minimal toolbelt for builing fast SVG-based applications
npm install tiny-svg
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
12,478,328
Last Day
3,385
Last Week
90,423
Last Month
377,837
Last Year
4,010,287
MIT License
51 Stars
123 Commits
15 Forks
10 Watchers
2 Branches
11 Contributors
Updated on Jun 04, 2025
Latest Version
4.1.3
Package Id
tiny-svg@4.1.3
Unpacked Size
107.29 kB
Size
17.01 kB
File Count
10
NPM Version
10.8.2
Node Version
20.17.0
Published on
Oct 01, 2024
Cumulative downloads
Total Downloads
Last Day
-5.8%
3,385
Compared to previous day
Last Week
-5.8%
90,423
Compared to previous week
Last Month
9.1%
377,837
Compared to previous month
Last Year
36%
4,010,287
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 dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
6 existing vulnerabilities detected
Details
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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 2025-06-30
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