open-index/open-npm huggingface dataset:
npm package: @subsetcss/config-helpers
Description: Helpers for building out `.subsetcss.js` config files.
Author: Ilya Radchenko
Latest version: 0.0.3

# @subsetcss/config-helpers

Helpers for building out `.subsetcss.js` config files.

## Available helpers

### `getVariables`

```js
const { getVariables } = require('@subsetcss/config-helpers');

let colors = getVariables('app/styles/variables.scss');
// colors = [
//   { key: '$primary': value: 'red' },
//   { key: '$secondary': value: 'blue' }
// ]

module.exports = {
  subsets: {
    color: colors.map(c => c.key)
  }
};
```

Works for files ending in `.scss` and `.less`.

## Contributing

Check out the [Contributing guide](CONTRIBUTING.md).
npm package: @subsetcss/parser
Description: Parse CSS and return matching config based on line number
Author: Ilya Radchenko
Latest version: 0.1.3

# @subsetcss/parser

CSS parser based on postcss that returns a config based on line number and css.
Also includes the types for the subsetcss config format.

[![Node.js CI](https://github.com/subsetcss/parser/actions/workflows/nodejs.yaml/badge.svg)](https://github.com/subsetcss/parser/actions/workflows/nodejs.yaml)

## Contributing

Check out the [Contributing guide](CONTRIBUTING.md).