# scss-comment-parser

> Parse SCSS comments to build documentation

Latest version **0.8.4** (published 2018-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install scss-comment-parser
pnpm add scss-comment-parser
yarn add scss-comment-parser
bun add scss-comment-parser
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.4 |
| Published | 2018-02-03 |
| First published | 2014-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Fabrice Weinberg |
| Maintainers | fweinb, hugogiraudel, valeriangalliat, pascalduez |

## Links

- npm: https://www.npmjs.com/package/scss-comment-parser
- Repository: https://github.com/SassDoc/scss-comment-parser
- Homepage: https://github.com/SassDoc/scss-comment-parser#readme
- Issues: https://github.com/SassDoc/scss-comment-parser/issues
- npm.io page: https://npm.io/package/scss-comment-parser

## Dependencies (1)

- [cdocparser](https://npm.io/package/cdocparser.md) ^0.13.0

## Recent versions

- 0.8.4 (latest) — 2018-02-03
- 0.8.3 — 2017-07-04
- 0.8.2 — 2016-10-28
- 0.8.1 — 2015-12-22
- 0.8.0 — 2015-11-28
- 0.7.0 — 2015-06-06
- 0.6.0 — 2015-01-30
- 0.6.0-rc.3 — 2015-01-27
- 0.6.0-rc.2 — 2015-01-20
- 0.6.0-rc.1 — 2015-01-19
- 0.5.1-rc.5 — 2014-12-31
- 0.5.1-rc.4 — 2014-11-27
- 0.5.1-rc.3 — 2014-11-23
- 0.5.1-rc.2 — 2014-10-18
- 0.5.1-rc1 — 2014-10-13
- … 25 more at https://npm.io/package/scss-comment-parser/versions

## README

scss-comment-parser [![Build Status](https://travis-ci.org/SassDoc/scss-comment-parser.svg?branch=master)](https://travis-ci.org/SassDoc/scss-comment-parser)
---

Parse `///` comments and extracts context from SCSS.


## Install

```shell
npm install --save scss-comment-parser
```

## Usage

```js
var ScssCommentParser = require('scss-comment-parser');

var annotations = {
  _: {
    alias: {
      'aliasTest': 'annotationTest'
    }
  },
  annotationTest: function ( commentLine ) {
    return 'Working';
  }
};

var parser = new ScssCommentParser( annotations );


var scss = /* Load Scss */
var comments = parser.parse ( scss );

console.log(comments);
```


## Changelog

### `0.8.4`
  *  Fix parsing of variable values containing semicolons.

### `0.8.3`
  * Fix remaining previous package name.

#### `0.8.2`
  * Fix selectors with interpolations parsing.

#### `0.8.1`
  * Fix CSS line numbers, expected by SassDoc.

#### `0.8.0`
  * Allow CSS context parsing.

#### `0.7.0`
  * Update to `cdocparser@0.14.0`

#### `0.6.0`
  * Update to `cdocparser@0.13.0`
  * Make changes needed for SassDoc 2.0

#### `0.5.1-rc1`
  * Update to `cdocparser@0.5.0`
  * Add support for configuration passed to the extractor.  

#### `0.5.0`
  * Update to `cdocparser@0.4.0`
  * Add support for configuration passed to the extractor.  

#### `0.4.0`
  * Update to `cdocparser@0.3.0` supporting `///` comments
  * Include a `context.line` with `start, end` value for each detected code part

#### `0.3.2`
  * Added `context.code` to type `placeholder`.

#### `0.3.1`
  * Update to [`cdocparser`](https://github.com/FWeinb/CDocParser) 0.2.1

#### `0.3.0`
  * Add placeholder support (thanks to [callum](https://github.com/callum))

#### `0.2.4`
  * Remove first opening and last closing brace in `context.code`

#### `0.2.3`
  * Fixed wrong code extraction for `function` and `mixin`. (See [#11](https://github.com/SassDoc/scss-comment-parser/issues/11))

#### `0.2.2`
  * Added `context.code` to type `function` and `mixin` containing the whole code.

#### `0.2.1`
  * Fix bug in detection of comment blocks

#### `0.1.2`
  * Update dependencys

#### `0.1.1`
  * Fix multiline annotations to include `@`

#### `0.1.0`
  * Initial release

---
_Source: https://npm.io/package/scss-comment-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
