Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
@samhuk/paginator
Advanced tools
Readme
A vanilla JS paginator UI component.
npm i @samhuk/paginator
import { createPaginator } from '@samhuk/paginator'
const element = document.createElement('div')
const paginator = createPaginator({
page: 1,
itemCount: 50,
pageSize: 20,
pageSizeOptions: [20, 50, 100, 500],
})
element.appendChild(paginator.rendered.element)
There are two main ways the styles of the component can be imported into another project. One can either:
import
the scss entrypoint or css bundle file into your .ts or .js file. This is supported by all the main bundlers out there like webpack and esbuild as long as you have the required loader/plugin for scss or css files configured.// Import the scss entrypoint file from the src
import 'node_modules/@samhuk/paginator/src/component/styles/index.scss'
// Import the css bundle file
import 'node_modules/@samhuk/paginator/dist/styles.css'
@import
the scss entrypoint file into your scss file.@import '~@samhuk/paginator/src/component/styles/index.scss';
FAQs
Vanilla JS paginator UI component
The npm package @samhuk/paginator receives a total of 0 weekly downloads. As such, @samhuk/paginator popularity was classified as not popular.
We found that @samhuk/paginator 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.