
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@resourge/pagination
Advanced tools
`Pagination` is a small function that returns an array containing information for the pagination creation.
Pagination
is a small function that returns an array containing information for the pagination creation.
Install using Yarn:
yarn add @resourge/pagination
or NPM:
npm install @resourge/pagination --save
import { pagination } from '@resourge/pagination';
pagination({
/**
* Current page
*/
page: 0,
/**
* Total page number
*/
totalPages: 10,
/**
* Number of "pages" displaying.
* * Note: Current page will try to stay in the middle
*/
displayRange: 5,
/**
* If pagination is disabled
*/
disabled: false,
/**
* Method for "page" click
*/
onPageChange: (page: number) => {},
/**
* Defines the "page" for first page
* * When undefined the item will not be included
*/
firstLabel: () => 'First Page',
/**
* Defines the "page" for previous page
* * When undefined the item will not be included
*/
previousLabel: () => 'Previous Page',
/**
* Defines the "page" for next page
* * When undefined the item will not be included
*/
nextLabel: () => 'Next Page',
/**
* Defines the "page" for last page
* * When undefined the item will not be included
*/
lastLabel: () => 'Last Page'
})
react-hook: React-hook-pagination
react component: React-pagination
MIT Licensed.
FAQs
`Pagination` is a small function that returns an array containing information for the pagination creation.
We found that @resourge/pagination demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.