Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
plugin-node-wrappable
Advanced tools
Patternlab Node plugin for wrappable patterns (e.g. on inverse backgrounds)
The Wrapper Plugin allows Pattern Lab Node users to add a wrapper element with class around patterns when shown in the single preview but still allow re-usability in other patterns without the wrapper element.
To add the Wrapper Plugin to your project using npm type:
npm install plugin-node-wrappable --save
Or add it directly to your project's package.json
file and run npm install
During installation, the plugin is added as a key to the plugins
object in your main Pattern Lab project's patternlab-config.json
file
If you don't see this object, try running
npm run postinstall
within the root of your project.
Post-installation, you will see the following in your patternlab-config.json
:
Example:
"plugins": {
"plugin-node-wrappable": {
"enabled": true,
"initialized": false
}
}
With the Wrapper Plugin installed, you can now set an additional wrap_in
attribute in the pattern Markdown front matter.
For example, if we want to preview a button pattern with a gray wrapper, you have to add the attribute to 00-button.md
:
---
title: Button
wrap_in: gray
---
[Insert description here]
This results in an additional <div class="sg-wrapper-gray">
element around the rendered pattern - but only in the standalone view and not if this pattern is included as an partial in other patterns.
After install, you may manually enable or disable the plugin by finding the plugin-node-wrappable
key within your main Pattern Lab project's patternlab-config.json
file and setting the enabled
flag. In the future this will be possible via CLI.
FAQs
Patternlab Node plugin for wrappable patterns (e.g. on inverse backgrounds)
We found that plugin-node-wrappable 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.