# get-processor-ids-from-stylelint-options

> Get stylelint processor identifiers from given stylelint API options

Latest version **1.0.0** (published 2017-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-processor-ids-from-stylelint-options
pnpm add get-processor-ids-from-stylelint-options
yarn add get-processor-ids-from-stylelint-options
bun add get-processor-ids-from-stylelint-options
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-02-21 |
| First published | 2017-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shinnosuke Watanabe |
| Maintainers | shinnn |
| Keywords | mode, file, stat, lstat, int, integer, number, promise, async, asynchronous |

## Links

- npm: https://www.npmjs.com/package/get-processor-ids-from-stylelint-options
- Repository: https://github.com/shinnn/get-processor-ids-from-stylelint-options
- Homepage: https://github.com/shinnn/get-processor-ids-from-stylelint-options#readme
- Issues: https://github.com/shinnn/get-processor-ids-from-stylelint-options/issues
- npm.io page: https://npm.io/package/get-processor-ids-from-stylelint-options

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-02-21
- 0.0.3 — 2017-02-17
- 0.0.2 — 2017-02-17
- 0.0.1 — 2017-02-17
- 0.0.0 — 2017-02-17

## README

# get-processor-ids-from-stylelint-options

[![NPM version](https://img.shields.io/npm/v/get-processor-ids-from-stylelint-options.svg)](https://www.npmjs.com/package/get-processor-ids-from-stylelint-options)
[![Build Status](https://travis-ci.org/shinnn/get-processor-ids-from-stylelint-options.svg?branch=master)](https://travis-ci.org/shinnn/get-processor-ids-from-stylelint-options)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/get-processor-ids-from-stylelint-options.svg)](https://coveralls.io/github/shinnn/get-processor-ids-from-stylelint-options?branch=master)

Get [stylelint](https://stylelint.io/) [processor](https://stylelint.io/user-guide/processors/) identifiers from a [stylelint option object](https://stylelint.io/user-guide/node-api/#options)

```javascript
const getProcessorIdsFromStylelintOptions = require('get-processor-ids-from-stylelint-options');

getProcessorIdsFromStylelintOptions({
  config: {
    processors: [
      '@mapbox/stylelint-processor-markdown',
      ['./custom-proessor.js', {
        optionOne: true,
        optionTwo: false
      }]
    ]
  }
}); //=> Set {'@mapbox/stylelint-processor-markdown', './custom-processor.js'}
```

## Installation

[Use npm.](https://docs.npmjs.com/cli/install)

```
npm install get-processor-ids-from-stylelint-options
```

## API

```javascript
const getProcessorIdsFromStylelintOptions = require('get-processor-ids-from-stylelint-options');
```

### getProcessorIdsFromStylelintOptions([*options*])

*options*: `Object` ([stylelint API options](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/node-api.md#options))  
Return: `Set<string>`

```javascript
getProcessorIdsFromStylelintOptions({
  config: {
    processors: [
      './processor0.js',
      './processor1.js'
    ]
  }
}); //=> Set {'./processor0.js', ./processor1.js'}

getProcessorIdsFromStylelintOptions({
  configOverrides: {
    processors: '/processor/can/be/a/string/instead/of/an/array.js'
  }
}); //=> Set {'/processor/can/be/a/string/instead/of/an/array.js'}

getProcessorIdsFromStylelintOptions({
  config: {},
  configOverrides: {
    processors: 'configOverrides/will/be/ignored/when/both/config/and/configOverrides/are/provided'
  }
}); //=> Set {}

getProcessorIdsFromStylelintOptions(); //=> Set {}
```

## License

Copyright (c) 2017 [Shinnosuke Watanabe](https://github.com/shinnn)

Licensed under [the MIT License](./LICENSE).

---
_Source: https://npm.io/package/get-processor-ids-from-stylelint-options · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
