Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@devbookhq/splitter
Advanced tools
Splitter is a React component that 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 4,936 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.