
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
storybook-preset-inline-svg
Advanced tools
A Storybook preset to load SVG files inline using svg-inline-loader.
First npm install storybook-preset-inline-svg svg-inline-loader
Storybook 10+ uses ESM-only config. Update .storybook/main.ts (or .storybook/main.js):
export default {
addons: ['storybook-preset-inline-svg'],
}
TypeScript example with types:
import type { StorybookConfig } from '@storybook/react'
const config: StorybookConfig = {
addons: ['storybook-preset-inline-svg'],
}
export default config
By default this preset will inline all SVG files. Use options to filter which SVG files are inlined, or to pass options along to svg-inline-loader.
None of the options are required. Only use one of include or exclude, not both, which can be a RegExp or Function.
svgInlineLoaderOptions options supported by svg-inline-loaderinclude files to be inlined using includeexclude files from being inlined using excludeFor example,
export default {
addons: [
{
name: 'storybook-preset-inline-svg',
options: {
include: /source\/.+\.svg$/,
svgInlineLoaderOptions: {
removeTags: true,
removingTags: ['circle'],
},
},
},
],
}
FAQs
Storybook preset to load SVG files inline
The npm package storybook-preset-inline-svg receives a total of 6,356 weekly downloads. As such, storybook-preset-inline-svg popularity was classified as popular.
We found that storybook-preset-inline-svg demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.