
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
bee-switch
Advanced tools
两种状态切换的开关
先进行下载switch包
npm install --save bee-switch
组件调用
import { Switch } from 'bee-switch';
React.render(<div>
<Switch />
</div>, document.getElementById('target'));
<link rel="stylesheet" href="./node_modules/build/bee-switch.css">
import "./node_modules/src/Switch.scss"
//或是
import "./node_modules/build/bee-switch.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
checked | 指定当前是否选中 | Boolean | false |
defaultChecked | 初始是否选中 | Boolean | false |
onChange | 变化时回调函数,自定义参照demo | Function(checked:Boolean) | |
disabled | 设置是否禁用 | Boolean | false |
checkedChildren | 选中时的内容 | React | Node |
unCheckedChildren | 非选中时的内容 | React | Node |
size | 大小设置,oneOf:sm , lg | string | '' |
colors | 颜色设置,oneOf:primary ,success ,info ,dark ,warning | string | '' |
$ git clone https://github.com/tinper-bee/bee-switch
$ cd bee-switch
$ npm install
$ npm run dev
FAQs
switch ui component for react
The npm package bee-switch receives a total of 69 weekly downloads. As such, bee-switch popularity was classified as not popular.
We found that bee-switch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.