
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.
react-storybook-addon-static-markup
Advanced tools
Displays a panel with an "html version" of a story, as suggested in [this](https://github.com/storybooks/react-storybook/issues/617) thread.
Displays a panel with an "html version" of a story, as suggested in this thread.
Install the package:
npm i -D react-storybook-addon-static-markup
Then set the addon in your .storybook/config.js
:
import { configure, setAddon } from '@kadira/storybook'
import staticMarkup from 'react-storybook-addon-static-markup'
setAddon(staticMarkup)
configure(() => {
// ...
}, module)
...and register it in your .storybook/addons.js
:
import '@kadira/storybook/addons';
import 'react-storybook-addon-static-markup/register';
import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { ShowStaticMarkup } from '../src'
storiesOf('Usage examples', module)
.add(
'with HOC',
() => (
<ShowStaticMarkup>
<button className="foo bar baz">
hello!
</button>
</ShowStaticMarkup>
)
)
.addWithStaticMarkup(
'with a "shortcut" method',
() => (
<div className="foo">
hello
<button className="btn primary">
world!
</button>
</div>
)
)
FAQs
Displays a panel with an "html version" of a story, as suggested in [this](https://github.com/storybooks/react-storybook/issues/617) thread.
The npm package react-storybook-addon-static-markup receives a total of 13 weekly downloads. As such, react-storybook-addon-static-markup popularity was classified as not popular.
We found that react-storybook-addon-static-markup 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.