
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
An unopinionated set of user interface elements for React
yarn add aphro
Aphro makes use of React's context for configuration. Here's an example of a basic configuration.
// Theme.js
import * as config from './config'
import PropTypes from 'prop-types'
import { classNames } from 'aphro'
const Theme = props => props.children
Theme.contextTypes = {
aphro: PropTypes.shape({
config: PropTypes.object,
classNames: PropTypes.object
})
}
Theme.childContextTypes = {
aphro: {
config,
classNames: classNames(config)
}
}
export default Theme
// config.js
export const Button = {
extraSmall: {
height: 10
},
small: {
height: 20
},
medium: {
height: 30
},
large: {
height: 40
}
}
import Theme from './Theme'
import { render } from 'react-dom'
render(
<Theme>
<Application />
</Theme>
document.getElementById('root')
)
// Application.js
import { withClassNames } from 'aphro'
import { css } from 'aphrodite/no-important'
const enhance = withClassNames
export default enhance(({ classNames: cx }) =>
<div className={css(cx.flex)}>
<div className={css(cx.col8)}>
Sidebar
</div>
<div className={css(cx.col4)}>
Content
</div>
</div>
)
container flex flexWrap alignFlexStart alignCenter alignFlexEnd justifyFlexStart justifyCenter justifyFlexEnd col{1-12}{xs|sm|md|lg|xl}
Contributions welcome! Please read the contributing guidelines first.
FAQs
User interface React component library built on top of aphrodite
The npm package aphro receives a total of 0 weekly downloads. As such, aphro popularity was classified as not popular.
We found that aphro 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.