Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
fuzzy-rucksack
Advanced tools
Some tools to help on your fuzzy-chainsaw adventures.
npm install fuzzy-rucksack --save-dev
Creates an array of classNames from a space seperated variants string.
Example
createVariants('box--', 'round large dark');
/* output */
['box--round', 'box--large', 'box--dark']
Creates a className string based on input arrays. skips undefined values and flattens array entries.
Example
createClassName([
'box',
['box--round', 'box--large'],
props.isActive ? 'box--is-active' : undefined,
props.className
]);
/* props */
{ isActive: true, className: 'js-extra' }
/* output */
'box box--round box--large box--is-active js-extra'
Validates that all variants in a space seperated string are valid.
Useage
const Button = ({ variant }) => (
<div className={createVariants('box--', variant)} />
);
Button.propTypes = {
variant: PropTypes.variants(['round', 'large', 'dark'])
}
/* valid */
<Button variant="round" />
<Button variant="large dark" />
/* invalid */
<Button variant="utlra" />
<Button variant="big dark" />
<Button variant="round ultra dark" />
MIT Copyright ConnectiveDX 2016
FAQs
tools for fuzzy-chainsaw
The npm package fuzzy-rucksack receives a total of 5 weekly downloads. As such, fuzzy-rucksack popularity was classified as not popular.
We found that fuzzy-rucksack 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.