open-index/open-npm huggingface dataset:
npm package: @ibnlanre/atomize
Description: Extracts all atomic style rules from a given stylesheet
Author: Ridwan Olanrewaju
Latest version: 1.0.0

# Atomize

[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-f8bc45.svg)](https://github.com/prettier/prettier)
![version](https://img.shields.io/badge/version-1.0.0-orange)
[![Twitter](https://img.shields.io/twitter/follow/ibnlanre?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=ibnlanre)

---

Atomize extracts all atomic style rules from a given CSS stylesheet. Even if the stylesheet isn't meant for writing atomic styles; atomize makes it possible. It was created to be used in conjunction with [ReCSS](https://www.npmjs.com/package/@ibnlanre/recss).

---

## Installation

```bash
npm i @ibnlanre/atomize
```

## API

```javascript
// NodeJS Require
const atomize = require("@ibnlanre/atomize");

// ES6 Import
import atomize from "@ibnlanre/atomize";

const grammar = atomize({
  file: "../styles/quantum.css", // the relative path
  sep: "_", // separator used for class names in the stylesheet
  path: __dirname, // the directory path of the executable
  dest: ".", // specifies the destination, if { save: true }
  save: true // it is false by default -> ./quantum.js
}) // return an object of { class: property }
```