
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@html-polygon/react
Advanced tools
HTML Polygon is a polygon element generator for the following web frameworks:
Visit the playground and complete documentation at the HTML Polygon website.
# NPM
npm install @html-polygon/react
# Yarn
yarn add @html-polygon/react
# PNPM
pnpm add @html-polygon/react
Import the component:
import { Polygon } from '@html-polygon/react'
Use the component:
<Polygon
sides={5}
style={{
height: '300px',
width: '300px',
}}
>
I have 5 sides.
</Polygon>
Complete documentation can be found at the HTML Polygon website.
There are lots of polygon building utilities out there. They all generate either embedded SVGs, or they use CSS clip paths to clip the shape of standard divs.
The thing they all have in common is their inability to reliably contain text that "flows" into the shape to fill the polygon.
This is where HTML Polygon differs. This component builds an HTML element that both looks like a polygon, and behaves like a polygon.
You can use HTML Polygen to emulate the effects of the proposed CSS Shapes
property shape-inside
.
FAQs
Pure HTML polygons for React, no SVG.
The npm package @html-polygon/react receives a total of 14 weekly downloads. As such, @html-polygon/react popularity was classified as not popular.
We found that @html-polygon/react 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.