Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@trendmicro/react-interpolate
Advanced tools
A React component that renders elements into a format string containing replacement fields.
A React component that renders elements into a format string containing replacement fields. It comes in handy when working with dynamic text elements like localized strings of a translation library.
Demo: https://trendmicro-frontend.github.io/react-interpolate
npm install --save react @trendmicro/react-interpolate
import Interpolate from '@trendmicro/react-interpolate';
<Interpolate
replacement={{
number: (
<span
style={{
border: '1px solid #ccc',
padding: '5px 10px'
}}
>
20
</span>
)
}}
>
{'{{number}} groups enabled'}
</Interpolate>
<Interpolate
replacement={[
<i>{'2017-01-01T00:00:00Z'}</i>,
<i>{'2017-01-10T23:59:59Z'}</i>
]}
>
{'From {{0}} to {{1}}'}
</Interpolate>
Name | Type | Default | Description |
---|---|---|---|
format | String | ||
parent | String | 'span' | |
prefix | String | {{ | |
suffix | String | }} | |
replacement | Array|Object |
MIT
FAQs
A React component that renders elements into a format string containing replacement fields.
The npm package @trendmicro/react-interpolate receives a total of 1,195 weekly downloads. As such, @trendmicro/react-interpolate popularity was classified as popular.
We found that @trendmicro/react-interpolate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.