{"id":19295400,"url":"https://github.com/jsit/sassdoc-to-snippets","last_synced_at":"2026-02-18T06:30:59.775Z","repository":{"id":62271349,"uuid":"558395705","full_name":"jsit/sassdoc-to-snippets","owner":"jsit","description":"Chew up a file or directory of SassDoc-commented Sass, spit out snippets","archived":false,"fork":false,"pushed_at":"2022-11-07T00:19:30.000Z","size":129,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T18:41:40.875Z","etag":null,"topics":["sassdoc","snippets","snippets-editor"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sassdoc-to-snippets","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/jsit.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":"2022-10-27T13:17:48.000Z","updated_at":"2024-06-15T21:26:21.000Z","dependencies_parsed_at":"2023-01-23T02:16:13.420Z","dependency_job_id":null,"html_url":"https://github.com/jsit/sassdoc-to-snippets","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jsit/sassdoc-to-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fsassdoc-to-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fsassdoc-to-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fsassdoc-to-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fsassdoc-to-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsit","download_url":"https://codeload.github.com/jsit/sassdoc-to-snippets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fsassdoc-to-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29570326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T06:19:27.422Z","status":"ssl_error","status_checked_at":"2026-02-18T06:18:44.348Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["sassdoc","snippets","snippets-editor"],"created_at":"2024-11-09T22:43:22.962Z","updated_at":"2026-02-18T06:30:59.733Z","avatar_url":"https://github.com/jsit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SassDoc to Snippets\n\nConvert [SassDoc](http://sassdoc.com)-commented Sass to snippets files.\n\nIgnores `private`ly-scoped mixins/functions/variables.\n\nCan be used in Gulp et al.\n\n## Usage\n\n```sh\nsassdoc-to-snippets ./scss/ -f vscode -o ./scss.json\n```\n\n(requires trailing slash for directories)\n\n## Gulp\n\n```javascript\nconst sassdocToSnippets = require('sassdoc-to-snippets');\n\ngulp.task('sassdoc-to-snippets', function() {\n  return sassdocToSnippets({\n    src: './stylesheets/scss/',\n    dest: './snippets/scss.json',\n  })\n});\n```\n\n### Flags\n\n- `-o filename`: Output to `filename`\n- `-f format`: Render snippets in `format` format\n- `-p prefix`: Prefix snippet expansions with `prefix` (for when you're\n    namespacing with [Sass modules](https://sass-lang.com/documentation/at-rules/use))\n- `--debug`: Output the processed SassDoc data as well as the resulting snippets\n\n## Example\n\n### Input\n\n```scss\n/// Add padding around an element\n///\n/// @param {String} $value\n@mixin add-padding($value) {\n  padding: $value;\n}\n```\n\n### Output\n\n#### [VSCode](https://code.visualstudio.com/docs/editor/userdefinedsnippets)\n\n```json\n{\n  \"add-padding\": {\n    \"prefix\": \"add-padding\",\n    \"description\": \"Add padding around an element\",\n    \"body\": [\n      \"add-padding(${1:$value})\"\n    ]\n  }\n}\n```\n\n#### [Neosnippet](https://github.com/Shougo/neosnippet.vim) (Vim)\n\n```neosnippet\nsnippet add-padding\nabbr Add padding around an element\n  add-padding(${1:$value})\n```\n\n## Contributing\n\nEdit in `src`, run `npm run build` to compile.\n\nKnow of a snippet syntax for some other editor? Please file an Issue or PR!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsit%2Fsassdoc-to-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsit%2Fsassdoc-to-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsit%2Fsassdoc-to-snippets/lists"}