Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "bemmy", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Dependency-free utility to compose CSS classnames following the BEM convention.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -18,27 +18,24 @@ # bemmy | ||
const bem = bemmy('component') | ||
const bem = bemmy('component'); | ||
bem() // block | ||
bem(); // block | ||
// -> 'component' | ||
bem('content') // block + element | ||
bem('content'); // block + element | ||
// -> 'component__content' | ||
bem(null, 'disabled') // block + modifier | ||
bem(null, 'disabled'); // block + modifier | ||
// -> 'component component--disabled' | ||
bem('content', 'disabled') // block + element + modifier | ||
bem('content', 'disabled'); // block + element + modifier | ||
// -> 'component__content component__content--disabled' | ||
bem('content', { tall: true, green: true }) // modifier object | ||
// -> 'component__content component__content--tall component__content--green' | ||
bem('content', { tall: true, green: false }); // modifier object | ||
// -> 'component__content component__content--tall | ||
bem('content', ['tall', 'green']) // modifier array | ||
// -> 'component__content component__content--tall component__content--green' | ||
bem('content', ['tall']); // modifier array | ||
// -> 'component__content component__content--tall' | ||
bem('content', { tall: false, green: undefined, wide: true custom: 1 > 2 }) // dynamic modifiers | ||
// -> 'component__content component__content--wide' | ||
bem(null, null, 'some-class', 'another-class') // // additional classes | ||
bem(null, null, 'some-class', 'another-class'); // // additional classes | ||
// -> 'component some-class another-class' | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
10782
41