
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
   
A dynamic scaling component for React that automatically scales its children to fit within their container while maintaining aspect ratio.
yarn add dynascale
# or
npm install dynascale
import React from 'react';
import { Dynascale } from 'dynascale';
const Example = () => (
<div style={{ width: 400, height: 300, border: '1px solid #ccc' }}>
<Dynascale margin={0.05} debug={true}>
<div style={{ width: 600, height: 400, background: '#eee' }}>
This content will always fit and scale!
</div>
</Dynascale>
</div>
);
export default Example;
| Name | Type | Default | Description |
|---|---|---|---|
defaultScale | number | 0 | Initial scale value. |
minScale | number | 0.1 | Minimum allowed scale factor. |
margin | number | 0 | Margin as a percentage (0–1) to leave around the scaled content. |
className | string | '' | Additional class names for the container. |
debug | boolean | false | Show debug information overlay. |
children | ReactNode | Content to be scaled. |
This project is licensed under the MIT License.
FAQs
   
We found that dynascale demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.