Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
showcase-components
Advanced tools
A small React library for displaying previews/iframes/images of applications and websites inside browser and phone-like containers.
This is a small React
component library to be used as containers for showcasing projects, portfolio work, guides etc that are better presented in the context of a phone or browser window.
For reference they look like this:
npm i --save showcase-components
This package is meant to be used with a build tool to aid resolution of CSS modules. Webpack or similar with style-loader
& css-loader
will be required to use this package (although in most cases these packages should already be in use in most react build configurations).
This entire package compressed is under 2K. An alternative .png
type wrapper will be larger and it won't be dynamic. Yay fast loading and customisation!
The API for the components is pretty simple.
import React, { Component } from 'react'
import { Laptop } from 'showcase-components'
const MyAwesomePreview = (props) => (
<Laptop>
<iframe src={mywebsiteurl}></iframe>
</Laptop>
)
// OR
const MyAwesomePreviewAsImg = (props) => (
<Laptop>
<img src={mywebsiteurl}></img>
</Laptop>
)
// OR
const MyAwesomePreviewAsJsx = (props) => (
<Laptop>
<SomeOtherReactComponentsHere />
</Laptop>
)
See the typings file for a fuller description of properties that are exposed.
Please feel free to lodge an issue at the public git repository.
FAQs
A small React library for displaying previews/iframes/images of applications and websites inside browser and phone-like containers.
The npm package showcase-components receives a total of 0 weekly downloads. As such, showcase-components popularity was classified as not popular.
We found that showcase-components 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.