{"id":21387012,"url":"https://github.com/sassdoc/scss-comment-parser","last_synced_at":"2025-07-13T15:31:35.350Z","repository":{"id":18319264,"uuid":"21498202","full_name":"SassDoc/scss-comment-parser","owner":"SassDoc","description":"SCSS comments parser, with context information.","archived":false,"fork":false,"pushed_at":"2020-07-23T13:18:37.000Z","size":81,"stargazers_count":10,"open_issues_count":5,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-21T15:42:05.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SassDoc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-04T13:32:37.000Z","updated_at":"2022-04-13T15:23:01.000Z","dependencies_parsed_at":"2022-09-24T23:32:33.365Z","dependency_job_id":null,"html_url":"https://github.com/SassDoc/scss-comment-parser","commit_stats":null,"previous_names":["fweinb/scsscommentparser"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SassDoc%2Fscss-comment-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SassDoc%2Fscss-comment-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SassDoc%2Fscss-comment-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SassDoc%2Fscss-comment-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SassDoc","download_url":"https://codeload.github.com/SassDoc/scss-comment-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225893454,"owners_count":17540916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T12:11:27.623Z","updated_at":"2024-11-22T12:11:28.269Z","avatar_url":"https://github.com/SassDoc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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)\n---\n\nParse `///` comments and extracts context from SCSS.\n\n\n## Install\n\n```shell\nnpm install --save scss-comment-parser\n```\n\n## Usage\n\n```js\nvar ScssCommentParser = require('scss-comment-parser');\n\nvar annotations = {\n  _: {\n    alias: {\n      'aliasTest': 'annotationTest'\n    }\n  },\n  annotationTest: function ( commentLine ) {\n    return 'Working';\n  }\n};\n\nvar parser = new ScssCommentParser( annotations );\n\n\nvar scss = /* Load Scss */\nvar comments = parser.parse ( scss );\n\nconsole.log(comments);\n```\n\n\n## Changelog\n\n### `0.8.4`\n  *  Fix parsing of variable values containing semicolons.\n\n### `0.8.3`\n  * Fix remaining previous package name.\n\n#### `0.8.2`\n  * Fix selectors with interpolations parsing.\n\n#### `0.8.1`\n  * Fix CSS line numbers, expected by SassDoc.\n\n#### `0.8.0`\n  * Allow CSS context parsing.\n\n#### `0.7.0`\n  * Update to `cdocparser@0.14.0`\n\n#### `0.6.0`\n  * Update to `cdocparser@0.13.0`\n  * Make changes needed for SassDoc 2.0\n\n#### `0.5.1-rc1`\n  * Update to `cdocparser@0.5.0`\n  * Add support for configuration passed to the extractor.  \n\n#### `0.5.0`\n  * Update to `cdocparser@0.4.0`\n  * Add support for configuration passed to the extractor.  \n\n#### `0.4.0`\n  * Update to `cdocparser@0.3.0` supporting `///` comments\n  * Include a `context.line` with `start, end` value for each detected code part\n\n#### `0.3.2`\n  * Added `context.code` to type `placeholder`.\n\n#### `0.3.1`\n  * Update to [`cdocparser`](https://github.com/FWeinb/CDocParser) 0.2.1\n\n#### `0.3.0`\n  * Add placeholder support (thanks to [callum](https://github.com/callum))\n\n#### `0.2.4`\n  * Remove first opening and last closing brace in `context.code`\n\n#### `0.2.3`\n  * Fixed wrong code extraction for `function` and `mixin`. (See [#11](https://github.com/SassDoc/scss-comment-parser/issues/11))\n\n#### `0.2.2`\n  * Added `context.code` to type `function` and `mixin` containing the whole code.\n\n#### `0.2.1`\n  * Fix bug in detection of comment blocks\n\n#### `0.1.2`\n  * Update dependencys\n\n#### `0.1.1`\n  * Fix multiline annotations to include `@`\n\n#### `0.1.0`\n  * Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsassdoc%2Fscss-comment-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsassdoc%2Fscss-comment-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsassdoc%2Fscss-comment-parser/lists"}