
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@fe.whnhouse/flex.box
Advanced tools
You can simply install this Repo via npm
. It requires you to use styled-components
and react
(they are listed as peer dependencies of this project).
npm install @fe.whnhouse/flex.box
yarn add @fe.whnhouse/flex.box
The module exposes two Styled Components, FlexParent
and FlexChild
. Together, they allow the combination of all flex props, converted in a simple API:
interface IFlexChildProps {
grow?: number
shrink?: number
order?: number
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
basis?: number | 'auto'
style?: React.CSSProperties
}
interface IFlexParentProps {
fullWidth?: boolean
fullHeight?: boolean
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-around' | 'space-between' | 'space-evenly'
align?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline'
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-around' | 'space-between' | 'strech'
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse'
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse'
style?: React.CSSProperties
}
The components can then simply be used like this:
const App = () => {
return (
<FlexParent direction="column justify="space-between" align="center">
<FlexChild>First Child</FlexChild>
<FlexChild>Second Child</FlexChild>
<FlexChild>Third Child</FlexChild>
</FlexParent>
)
}
The example
folder provides a react-app using this module as example. Feel free to take a look.
FAQs
A Flex and Box React Component Wrapper around Flexbox.
We found that @fe.whnhouse/flex.box 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.