
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
split-views
Advanced tools
Utility for resizable split views.
$ npm i split-views
# or
$ yarn add split-views
import SplitViews from 'split-views';
Or include it via jsDelivr CDN (UMD):
<script src="https://cdn.jsdelivr.net/npm/split-views/build/index.min.js"></script>
<!-- Or via unpkg -->
<script src="https://unpkg.com/split-views"></script>
<!-- Access via global object : window.SplitViews -->
Options | Type | Default | Description |
---|---|---|---|
parent | HTMLElement or String | '.split-view' | Parent element. |
sizes | Array<Number> | [] | Initial sizes of each element in %. |
minSize | Number | 0 | Minimum size. |
gutterSize | Number | 5 | Gutter size (seperator). |
direction | String | 'horizontal' | Resize direction: horizontal or vertical. |
onDragEnd | Method | null | Callback with new sizes in %. |
const options = {
parent: '#parent-id', // or HTMLElement
direction: 'horizontal',
gutterSize: 5,
minSize: 20,
sizes: [25, 50, 25],
onDragEnd: (newSizes) => {
console.log(newSizes);
}
};
const sp = SplitViews(options)
// detroy method: remove "touchstart" and "mousedown" events
// the others events are removed by default
sp.detroy()
MIT
FAQs
Fast and Lightweight Utility for Resizable Split Views
We found that split-views 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.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.