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.
@devbookhq/splitter
Advanced tools
Splitter is a React component thath allows you to split views into resizable panels. Similar to tabs in Visual Studio Code, for example. It's used in Devbook - A Search Engine for Developers.
Here's a gif of what you can build with Splitter:
Splitter is inspired by Split.js and written as 100% functional component:
calc
npm install @devbookhq/splitter
# or
yarn add @devbookhq/splitter
import ReactSplit, { SplitDirection } from '@devbookhq/splitter'
function MyComponent() {
return (
<ReactSplit direction={SplitDirection.Horizontal}>
<div>Tile 1</div>
<div>Tile 2</div>
</ReactSplit>
);
}
import ReactSplit, { SplitDirection } from '@devbookhq/splitter'
function MyComponent() {
return (
<ReactSplit direction={SplitDirection.Vertical}>
<div>Tile 1</div>
<div>Tile 2</div>
</ReactSplit>
);
}
import ReactSplit, { SplitDirection } from '@devbookhq/splitter'
function MyComponent() {
return (
<ReactSplit direction={SplitDirection.Vertical}>
<div>Tile 1</div>
<ReactSplit direction={SplitDirection.Horizontal}>
<div>Tile 2</div>
<ReactSplit direction={SplitDirection.Vertical}>
<div>Tile 3</div>
<div>Tile 4</div>
</ReactSplit>
</ReactSplit>
</ReactSplit>
);
}
To see more examples check out the examples section.
Check the example
folder or the CodeSandbox project.
FAQs
Create resizable split views - like in VS Code
The npm package @devbookhq/splitter receives a total of 2,449 weekly downloads. As such, @devbookhq/splitter popularity was classified as popular.
We found that @devbookhq/splitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.