Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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,024 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.