๐งช Interactive Testing with Sample SVGs
January 2, 2026 ยท View on GitHub
This package includes 500+ sample SVG files and an interactive test utility to help you quickly evaluate svger-cli with real-world icons and logos.
๐ฆ What's Included
The assets/svges/ directory contains:
- 500+ popular brand logos (Google, Facebook, GitHub, etc.)
- Common UI icons (home, user, settings, etc.)
- Various SVG complexity levels (simple shapes to complex paths)
- Real-world test cases (different SVG structures and attributes)
๐ Quick Start
Method 1: CLI Test Utility (Recommended)
After installing the package, you can run the interactive test utility:
# Install globally
npm install -g svger-cli
# Run test with default settings (React, 10 files)
test-svger
# Test with Vue and TypeScript
test-svger --framework=vue --typescript
# Test with Angular, processing 20 files
test-svger --framework=angular --count=20
# Process all available SVGs
test-svger --count=999
Output:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SVGER-CLI Test Utility โ
โ Quick Test with Sample SVGs โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Found 500+ sample SVG files
Sample SVGs (showing first 10):
1. google.svg
2. facebook.svg
3. github.svg
4. home.svg
5. user.svg
... and 495+ more
Test Configuration:
Framework: react
Files to process: 10
TypeScript: No
Output directory: ./svger-test-output
Running command:
svger-cli --input assets/svges --output ./svger-test-output --framework react
โ Test completed successfully!
Duration: 234ms
Output: ./svger-test-output
Method 2: Direct CLI Usage
Use the sample SVGs directly with svger-cli:
# Find the assets directory in your node_modules
svger-cli --input ./node_modules/svger-cli/assets/svges --output ./my-components
# Or if installed globally (location varies by system)
svger-cli --input $(npm root -g)/svger-cli/assets/svges --output ./my-components
Method 3: Online Interactive Demo (No Install Required)
Try the Live Benchmarking Tool in your browser:
๐ https://faezemohades.github.io/svger-cli/#live-benchmark
Features:
- โ Test with 10 pre-loaded sample SVGs
- โ Upload your own SVG files (drag & drop)
- โ Switch between frameworks (React, Vue, Angular, Svelte)
- โ Real-time performance metrics
- โ Export results as JSON
- โ See generated component code
- โ No installation required!
๐ Test Utility Options
test-svger [options]
| Option | Description | Default |
|---|---|---|
--framework=<name> | Framework to use (react, vue, angular, svelte, solid, lit, preact, react-native, vanilla) | react |
--count=<number> | Number of SVG files to process | 10 |
--typescript | Generate TypeScript components | false |
--help, -h | Show help message | - |
๐ฏ Use Cases
1. Quick Evaluation
# Test before committing to use svger-cli
test-svger --count=5
2. Framework Comparison
# Compare output across frameworks
test-svger --framework=react --count=10
test-svger --framework=vue --count=10
test-svger --framework=angular --count=10
3. Performance Benchmarking
# Test with large batches
time test-svger --count=100
time test-svger --count=500
4. TypeScript Generation
# Test TypeScript output quality
test-svger --framework=react --typescript --count=20
5. Integration Testing
# Use in CI/CD pipelines
test-svger --count=50 && echo "โ Integration test passed"
๐ Package Structure
svger-cli/
โโโ bin/
โ โโโ svg-tool.js # Main CLI
โ โโโ test-svger.js # Test utility (NEW!)
โโโ assets/
โ โโโ svges/ # 500+ sample SVGs (NEW!)
โ โโโ google.svg
โ โโโ facebook.svg
โ โโโ github.svg
โ โโโ ... 500+ more
โโโ dist/ # Compiled code
โโโ package.json
๐ก Tips
Finding Sample SVGs Location
# If installed globally
npm root -g
# If installed locally
npm root
# Then navigate to svger-cli/assets/svges
Using Specific SVGs
# Test with only brand logos
svger-cli --input ./node_modules/svger-cli/assets/svges --include="google|facebook|github" --output ./brands
# Test with specific file patterns
svger-cli --input ./node_modules/svger-cli/assets/svges --include=".*icon.*" --output ./icons
Copying Sample SVGs
# Copy to your project for customization
cp -r ./node_modules/svger-cli/assets/svges ./my-test-svgs
svger-cli --input ./my-test-svgs --output ./components
๐ Online Demo vs CLI Test
| Feature | Online Demo | CLI Test Utility |
|---|---|---|
| Installation | None required | npm install needed |
| Speed | In-browser (slower) | Native (faster) |
| File Count | 10 samples or upload | 500+ included |
| Frameworks | 4 options | 9+ options |
| Output | View only | Real files |
| Customization | Limited | Full CLI options |
| Use Case | Quick preview | Development & testing |
Recommendation:
- ๐ Use Online Demo for quick evaluation
- ๐ป Use CLI Test Utility for serious testing
๐ Example Workflow
# 1. Try online demo first
open https://faezemohades.github.io/svger-cli/#live-benchmark
# 2. Install if you like what you see
npm install -g svger-cli
# 3. Run quick test
test-svger
# 4. Check the output
cd svger-test-output
ls -la
# 5. Test with your framework
test-svger --framework=vue --typescript
# 6. Use with your real SVGs
svger-cli --input ./my-svgs --output ./components --framework=vue --typescript
๐ Sample SVGs Categories
The included SVGs cover various categories:
- Brands: Google, Facebook, GitHub, Twitter, LinkedIn, etc. (200+)
- UI Icons: Home, User, Settings, Search, etc. (100+)
- Shapes: Circles, Squares, Triangles, etc. (50+)
- Tech Logos: React, Vue, Angular, Docker, AWS, etc. (100+)
- Misc: Flags, Emojis, Symbols, etc. (50+)
๐จ Important Notes
-
Sample SVGs are for testing only - They are publicly available icons and logos. Check licensing before using in production.
-
Not all SVGs may work perfectly - Some complex SVGs might need manual adjustment. This is intentional to provide realistic test cases.
-
Output directory - The test utility creates
svger-test-outputin your current directory. You can delete it after testing. -
Package size - Including 500+ SVGs adds ~2-3MB to the package. This is acceptable for a testing utility but be aware if disk space is critical.
๐ค Contributing
Have interesting SVG test cases? Contribute them!
# Fork the repo
git clone https://github.com/faezemohades/svger-cli
cd svger-cli
# Add your SVG to assets/svges/
cp your-test.svg assets/svges/
# Submit PR
git add assets/svges/your-test.svg
git commit -m "Add your-test.svg for testing"
git push
๐ More Information
- Documentation: https://github.com/faezemohades/svger-cli
- Live Demo: https://faezemohades.github.io/svger-cli/#live-benchmark
- Issues: https://github.com/faezemohades/svger-cli/issues
Happy Testing! ๐