
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
rollup-plugin-svg-sprite-deterministic
Advanced tools
Create deterministic external svg sprite from your bundle using Rollup
Create deterministic external svg sprite file from your bundle using Rollup and optimize it using SVGO.
This is a fork of rollup-plugin-svg-sprite that creates deterministic (repeatable) builds. See #8 for motivation.
Version 2.x
of this plugin has some breaking changes. See #1.
# yarn
yarn add rollup-plugin-svg-sprite-deterministic -D
# npm
npm install rollup-plugin-svg-sprite-deterministic -D
// rollup.config.js
import svgSprite from 'rollup-plugin-svg-sprite-deterministic'
export default {
input: 'src/index.js',
output: {
file: 'dist/app.js',
format: 'iife'
},
plugins: [
svgSprite({
outputFolder: 'dist/public'
})
]
}
Next, import svg files in your project:
import './svg/trash.svg'
import './svg/user.svg'
There are some useful options:
Type: string
Folder where generated svg sprite will be saved.
svgSprite({
outputFolder: 'dist/public'
})
Type: boolean
| Default: true
Minify generated svg sprite.
svgSprite({
outputFolder: 'dist/public',
minify: false
})
MIT
FAQs
Create deterministic external svg sprite from your bundle using Rollup
The npm package rollup-plugin-svg-sprite-deterministic receives a total of 69 weekly downloads. As such, rollup-plugin-svg-sprite-deterministic popularity was classified as not popular.
We found that rollup-plugin-svg-sprite-deterministic 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.