
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.
react-text-flipper
Advanced tools
Run npm i react-text-flipper
or yarn add react-text-flipper
in the root of your React project.
In the component where you want to see the animation of text string flipper import TextFlipper
with
import TextFlipper from 'react-text-flipper'
Render passing the props with array pfstring to flip through and the last string will be the final one.
Optionally pass the interval in milliseconds between flips (default is 500ms) and the HTML element to use (default is <p>
):
import TextFlipper from './TextFlipper'
function App() {
// array of strings to flip through, the final one will stay
const text = [
"バルセロナ・コード・スクール",
"巴塞罗那代码学校",
"مدرسة برشلونة لتعليم البرمجة",
"École de code de Barcelone",
"Barcelona Codierschule",
"Escuela de Código de Barcelona",
"Escola de Código de Barcelona",
"Barselona Kod Okulu",
"Scuola di Codice di Barcellona",
"Барселонская школа кода",
"Barcelona Code School",
];
return (
<>
{/* rendering TextFlipper */}
<TextFlipper
textSequence={text} // passing the array of strings
interval={100}
tagName="h1" // HTML tag to use for the text
/>
</>
)
}
export default App
"react": ">=18.1.0",
"react-dom": ">=18.1.0"
npm: https://www.npmjs.com/package/react-text-flipper
Done at Barcelona Code School
FAQs
A React component to flip text strings
The npm package react-text-flipper receives a total of 3 weekly downloads. As such, react-text-flipper popularity was classified as not popular.
We found that react-text-flipper 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.
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.