MiniCSS core package
npm install @minicss/coreMiniCSS core package














- Installation
- Usage
- Versioning
- Authors
- License
``shell`
npm i @minicss/core
`typescript
import MiniCSS from "@minicss/core";
const miniCSS = new MiniCSS();
// First, you need to add attribute selectors.
miniCSS.addAttributeSelector(selector);
// Then, you can optimize nodes based on attribute selectors. (optional)
miniCSS.optimize();
// Then, you can replace the attribute selector operators & values.
const { operator, value } = miniCSS.attributeSelector(selector);
// Finally, you can rename classes/ids/variables/keyframes
const className = miniCSS.class("class");
const id = miniCSS.id("id");
const variable = miniCSS.variable("variable");
const keyframe = miniCSS.keyframe("keyframe");
``
> API usage documents are available here.
We use SemVer for versioning.
For the versions available, see the releases on this repository.
- Ardalan Amini - _Core Maintainer_ - @ardalanamini
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details.