{"id":24819022,"url":"https://github.com/nitive/posthtml-bem-sugar","last_synced_at":"2026-03-15T20:05:43.183Z","repository":{"id":57328774,"uuid":"59805444","full_name":"Nitive/posthtml-bem-sugar","owner":"Nitive","description":"PostHTML plugin for support to simplify the maintenance of BEM naming structure in jade.","archived":false,"fork":false,"pushed_at":"2017-01-28T18:58:26.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-26T04:52:04.212Z","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/Nitive.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":"2016-05-27T05:01:00.000Z","updated_at":"2019-12-24T07:29:21.000Z","dependencies_parsed_at":"2022-09-07T16:30:16.789Z","dependency_job_id":null,"html_url":"https://github.com/Nitive/posthtml-bem-sugar","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Nitive/posthtml-bem-sugar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fposthtml-bem-sugar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fposthtml-bem-sugar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fposthtml-bem-sugar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fposthtml-bem-sugar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nitive","download_url":"https://codeload.github.com/Nitive/posthtml-bem-sugar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fposthtml-bem-sugar/sbom","scorecard":{"id":101962,"data":{"date":"2025-08-11","repo":{"name":"github.com/Nitive/posthtml-bem-sugar","commit":"8d18721f2f467477bdbbfa8246cba0bbf94bf0f5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-15T10:19:41.991Z","repository_id":57328774,"created_at":"2025-08-15T10:19:41.991Z","updated_at":"2025-08-15T10:19:41.991Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016921,"owners_count":26085908,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-30T17:55:58.089Z","updated_at":"2025-10-13T20:30:47.538Z","avatar_url":"https://github.com/Nitive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostHTML-bem-sugar\n[![Build Status](https://travis-ci.org/rajdee/posthtml-bem.svg?branch=master)](https://travis-ci.org/rajdee/posthtml-bem?branch=master) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n[PostHTML](https://github.com/posthtml/posthtml) plugin for support to simplify the maintenance of [BEM](http://bem.info) naming structure in jade. It is works on top of [posthtml-bem](https://github.com/rajdee/posthtml-bem).\n\n\n## Install\n\n```\n$ npm install --save-dev posthtml-jade posthtml-bem posthtml-bem-sugar\n```\n\n\n##Features\n\n### Blocks\n\n```jade\n.-MadTeaParty\n  | Mad Tea Party\n```\n\nThis would render like\n\n```html\n\u003cdiv class=\"MadTeaParty\"\u003e\n    Mad Tea Party\n\u003c/div\u003e\n```\n\n\n### Elements\n\n```jade\n.-MadTeaParty\n  .__march-hare March Hare\n```\n\nThis would render like\n\n```html\n\u003cdiv class=\"MadTeaParty\"\u003e\n    \u003cdiv class=\"MadTeaParty__march-hare\"\u003eMarch Hare\u003c/div\u003e\n\u003c/div\u003e\n```\n\n### Modifiers\n\n\n```jade\n.-MadTeaParty\n  .__march-hare._type_mad March Hare\n  .__march-hare._mad March Hare\n```\n\n\nThis would render like\n\n```html\n\u003cdiv class=\"MadTeaParty\"\u003e\n    \u003cdiv class=\"MadTeaParty__march-hare MadTeaParty__march-hare_type_mad\"\u003e\n        March Hare\n    \u003c/div\u003e\n    \u003cdiv class=\"MadTeaParty__march-hare MadTeaParty__march-hare_mad\"\u003e\n        March Hare\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\n\n## Usage\n\n```javascript\nvar posthtml = require('posthtml');\n\n// It is default config\nvar config = {\n  blockPrefix: '-',\n  elemPrefix: '__',\n  modPrefix: '_',\n  modDlmtr: '_',\n};\n\nvar jade = [\n  '.-mad-tea-party',\n  '  .__march-hare._type_mad March Hare',\n  '  .__hatter._type_mad Hatter',\n  '  .__dormouse._state_sleepy Dormouse'\n].join('\\n')\n\n\nposthtml()\n  .use(require('posthtml-jade')())\n  .use(require('posthtml-bem-sugar')(config))\n  .use(require('posthtml-bem')())\n  .process(jade)\n  .then(function (result) {\n    console.log(result.html);\n  });\n```\n\n\n## With Gulp\n\n```javascript\nvar gulp = require('gulp'),\n    rename = require('gulp-rename'),\n    posthtml = require('gulp-posthtml');\n\ngulp.task('default', function () {\n  return gulp.src('before.jade')\n    .pipe(posthtml([\n      require('posthtml-jade')(),\n      require('posthtml-bem-sugar')({\n        // defaults\n        blockPrefix: '-',\n        elemPrefix: '__',\n        modPrefix: '_',\n        modDlmtr: '_',\n      }),\n      require('posthtml-bem')(),\n    ]))\n    .pipe(rename('after.html'))\n    .pipe(gulp.dest('.'));\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitive%2Fposthtml-bem-sugar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitive%2Fposthtml-bem-sugar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitive%2Fposthtml-bem-sugar/lists"}