Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 3 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.