
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.
react-text-collapse
Advanced tools

Keep things simple! You don't need jQuery...
$ npm install --save react-text-collapse
<ReactTextCollapse options={TEXT_COLLAPSE_OPTIONS}>
<p>
React text collapse is awesome. React text collapse is awesome.
<br />
React text collapse is awesome. React text collapse is awesome.
<br />
React text collapse is awesome. React text collapse is awesome.
<br />
React text collapse is awesome. React text collapse is awesome.
<br />
</p>
</ReactTextCollapse>
options: PropTypes.object.isRequiredconst TEXT_COLLAPSE_OPTIONS = {
collapse: false, // default state when component rendered
collapseText: '... show more', // text to show when collapsed
expandText: 'show less', // text to show when expanded
minHeight: 100, // component height when closed
maxHeight: 250 // expanded to
textStyle: { // pass the css for the collapseText and expandText here
color: "blue",
fontSize: "20px"
}
}
$ git clone git@github.com:cht8687/react-text-collapse.git
$ cd react-text-collapse
$ npm install
$ webpack-dev-server
Then
open http://localhost:8080/webpack-dev-server/
MIT
Thanks to these wonderful developers for helping this project:
FAQs
React text collapse expand tool
The npm package react-text-collapse receives a total of 2,715 weekly downloads. As such, react-text-collapse popularity was classified as popular.
We found that react-text-collapse 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.

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.