
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
jquery-inline-svg
Advanced tools
Takes an with an SVG as its source and replace it with an inline so you can manipulate the style of it with CSS/JS etc.
npm install jquery-inline-svg
Download the dist/jquery-inline-svg.min.js file from this repository and add it to your project.
Include the jquery-inline-svg
script on your page after jQuery
.
<script src="jquery.min.js"></script>
<script src="jquery-inline-svg.min.js"></script>
Add some SVG <img>
tags.
<img src="image-one.svg" data-inline-svg>
<img src="image-two.svg" data-inline-svg>
Inline them.
<script>
$('[data-inline-svg]').inlineSvg();
</script>
The <img>
tags have now been replaced with the full SVG markup.
svgInlined
event will be fired on every <img>
with inlined SVG element as argument
$('[data-inline-svg]').on('svgInlined', function (e, svgElement) {
$(svgElement).addClass('is-loaded');
})
This plugin requires jQuery 3
inlineSvg from UIkit 2 https://github.com/uikit/uikit/blob/v2/master/src/js/core/utility.js#L267
1.0.0 - 2018-03-17
FAQs
Replace SVG images with inline SVG element
The npm package jquery-inline-svg receives a total of 73 weekly downloads. As such, jquery-inline-svg popularity was classified as not popular.
We found that jquery-inline-svg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.