
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.
@biotope/preview
Advanced tools
First, install the @biotope/preview package as any other regular npm package:
npm install https://github.com/biotope/biotope-preview.git --save
Next, your component needs a package.json with the following data. This is required for the process to work:
{
"name": "yourComponentName",
"tagName": "your-component-html-tag",
"previewConfigs": [
{
"name": "Name for your Component Preview in Storybook",
"props": {
"exampletext": {
"headline": "Example",
"claim": "With a claim",
"secondaryColor": false
},
"exampleimage": {
"url": "https://picsum.photos/id/804/1000/600",
"alignment": "center",
"alignmentLarge": "center",
"altText": "Image"
}
}
}
]
}
After creating a package.json with the required data, you have to run:
npm run build
because storybook relies on the compiled components' source files in the dist
folder.
It parses your src/components/ subfolders for the component's package.json's and creates previews based on the configuration inside.
Then you can run either
npx biotope-preview-build
or
npx biotope-preview-serve
biotope-preview-build
will create a preview folder in your project with a index.html you then can serve somewhere. biotope-preview-serve
will not create any folder, but only serve a temporary storybook preview.
FAQs
A package to preview all your biotope components
The npm package @biotope/preview receives a total of 1 weekly downloads. As such, @biotope/preview popularity was classified as not popular.
We found that @biotope/preview demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.