
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.
A lightweight React component for joining multiple components in a grammatically correct way.
A lightweight React component for joining multiple components in a grammatically correct way. Joins components using commas, "and", "&", "or", or any other term you specify.
Written in Typscript with zero dependencies.
yarn add react-and
npm install --save react-and
ReactAnd accepts any number of children and will render them with the correct grammar.
<ReactAnd>
{[
'apples',
'oranges',
'bananas',
]}
</ReactAnd>
Renders as:
apples, oranges, and bananas
You can pass any valid React components as children:
<ReactAnd>
<a href="/apples">apples</a>
<a href="/oranges">oranges</a>
</ReactAnd>
Renders as:
<a href="/apples>apples</a> and <a href="/oranges">oranges</a>
conjuction
This is the string to be used to join the last child when there is more than one child. Default: "and"
.
<ReactAnd conjuction="and/or">
{[
'apples',
'oranges',
]}
</ReactAnd>
Renders as:
apples and/or oranges
oxfordComma
Determinses whether an Oxford comma will be used when joining the items. Default: true
.
<ReactAnd oxfordComma={false}>
{[
'apples',
'oranges',
'bananas',
]}
</ReactAnd>
Renders as:
apples, oranges and bananas
Licensed under MIT.
FAQs
A lightweight React component for joining multiple components in a grammatically correct way.
We found that react-and 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.