Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
angular-downloadsvg-directive
Advanced tools
AngularJS directive to download an SVG element as an SVG or PNG file, including CSS defined styles.
<svg>
element by default.<svg>
by element or selector.bower install Hypercubed/angular-downloadsvg-directive
angular-downloadsvg-directive.js
in app. By default at bower_components/angular-downloadsvg-directive/angular-downloadsvg-directive.js
.hc.downloader
as a module dependency to your app.For maximum compatibility across browsers include eligrey/FileSaver.js/ and eligrey/canvas-toBlob.js. See Compatibility-Chart for more information.
<button svg-download="#chart" title="mysvg">Download as SVG</button>
<button svg-download="#chart" title="mysvg" type="png">Download as PNG</button>
By default the downloaded file filename will be the title attribute plus ".svg" (or "png"). An optional filename attribute can also be given. See documentation
Copyright (c) 2013-2015 Jayson Harshbarger
FAQs
AngularJS directive to download SVGs
The npm package angular-downloadsvg-directive receives a total of 11 weekly downloads. As such, angular-downloadsvg-directive popularity was classified as not popular.
We found that angular-downloadsvg-directive 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.