Installations
npm install filepond-plugin-fetch-svg-preview
Developer Guide
Typescript
No
Module System
CommonJS, UMD
Node Version
10.14.0
NPM Version
6.4.1
Score
70.4
Supply Chain
83.6
Quality
75.6
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (68.03%)
HTML (19.9%)
SCSS (12.07%)
Developer
Sengkey
Download Statistics
Total Downloads
1,700
Last Day
1
Last Week
6
Last Month
20
Last Year
197
GitHub Statistics
1 Stars
10 Commits
1 Watching
1 Branches
1 Contributors
Bundle Size
2.17 kB
Minified
1.07 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.9
Package Id
filepond-plugin-fetch-svg-preview@1.0.9
Unpacked Size
21.50 kB
Size
5.94 kB
File Count
9
NPM Version
6.4.1
Node Version
10.14.0
Total Downloads
Cumulative downloads
Total Downloads
1,700
Last day
0%
1
Compared to previous day
Last week
500%
6
Compared to previous week
Last month
233.3%
20
Compared to previous month
Last year
-28.4%
197
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
SVG Preview plugin for FilePond
This Fetch SVG Preview plugin will kick in automatically when the uploaded file has an SVG extension with incorrect Content-Type e.g. application/octet-stream which is common in S3 bucket.
Quick Start
Install using yarn or npm:
1yarn add filepond-plugin-fetch-svg-preview
1npm install filepond-plugin-fetch-svg-preview
Then import in your project:
1import * as FilePond from 'filepond'; 2import FilePondPluginFetchSVGPreview from 'filepond-plugin-fetch-svg-preview';
Register the plugin:
1FilePond.registerPlugin(FilePondPluginFetchSVGPreview);
Create a new FilePond instance as normal.
1const pond = FilePond.create({
2 name: 'filepond'
3});
4
5// Add it to the DOM
6document.body.appendChild(pond.element);
The Fetch SVG preview will become active when loading an SVG file as describe above. It will remove all hyperlinks within the SVG documents itself for security reason.
Filepond options
props name | description |
---|---|
allowFetchSVGPreview | true boolean |
Default styles
Be sure to include this lib's styles, by importing the minified css.
1import 'filepond-plugin-fetch-svg-preview/dist/filepond-plugin-fetch-svg-preview.min.css';
Demo
Python 2.x
python -m SimpleHTTPServer 8000
Open localhost:8000 in your browser.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
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
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
27 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4
- Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g
- Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv
- Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr
- Warn: Project is vulnerable to: GHSA-566m-qj78-rww5
- Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
Score
1.7
/10
Last Scanned on 2025-02-03
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