
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
2R library image component implemented in React.
2r-image
is available as an npm package. Simply run npm install 2r-image
command.
To use it in your project:
import image from '2r-image'; // ES6 syntax
var image = require('2r-image'); // ES5 syntax
The following props can be passed to the component:
src
(String, required): the url of the image
width
(Number): width of the image (defaults to 'auto'
)
height
(Number): height of the image (defaults to 'auto'
)
alt
(String): the value of the alt
attribute (defaults to ''
)
classes
(String): a string of multiple classes, separated by space (defaults to ''
)
There is an examples folder inside the project with a minimum config. Steps to run:
Clone the project and
Run npm install
Run gulp examples
Navigate to http://localhost:5000
This software is released under the terms of WTFPL v2.0 license.
FAQs
2R library image component implemented in React
We found that 2r-image 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.