Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@types/overlayscrollbars
Advanced tools
TypeScript definitions for overlayscrollbars
@types/overlayscrollbars provides TypeScript definitions for the OverlayScrollbars library, which is used to create customizable and performant scrollbars for web applications.
Initialization
This feature allows you to initialize OverlayScrollbars on a specific DOM element. The second parameter is an options object where you can customize the scrollbar.
const osInstance = OverlayScrollbars(document.getElementById('myElement'), {});
Options Configuration
This feature allows you to configure various options such as theme and resize behavior when initializing OverlayScrollbars.
const osInstance = OverlayScrollbars(document.getElementById('myElement'), { className: 'os-theme-dark', resize: 'both' });
Methods
This feature allows you to use various methods provided by the OverlayScrollbars instance, such as scrolling to a specific position.
osInstance.scroll({ x: '100%', y: '100%' });
Events
This feature allows you to attach event listeners to the OverlayScrollbars instance, such as listening for scroll events.
osInstance.on('scroll', (event) => { console.log('Scrolled!', event); });
SimpleBar is a similar library that provides custom scrollbars with minimal styles. It is simpler to use but offers fewer customization options compared to OverlayScrollbars.
Perfect Scrollbar is another library for creating custom scrollbars. It focuses on providing a minimalistic scrollbar with good performance. It is less feature-rich compared to OverlayScrollbars but is easier to set up.
React Custom Scrollbars is a library specifically designed for React applications. It provides customizable scrollbars with a focus on React's component-based architecture. It is more suitable for React projects compared to OverlayScrollbars.
npm install --save @types/overlayscrollbars
This package contains type definitions for overlayscrollbars (https://kingsora.github.io/OverlayScrollbars).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/overlayscrollbars.
These definitions were written by KingSora.
FAQs
TypeScript definitions for overlayscrollbars
The npm package @types/overlayscrollbars receives a total of 259,262 weekly downloads. As such, @types/overlayscrollbars popularity was classified as popular.
We found that @types/overlayscrollbars 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.