{"id":23058754,"url":"https://github.com/suhdev/bem-class-gen","last_synced_at":"2025-04-03T06:20:39.032Z","repository":{"id":74758185,"uuid":"161401226","full_name":"suhdev/bem-class-gen","owner":"suhdev","description":"A utility class to generate bootstrap 4 classes ","archived":false,"fork":false,"pushed_at":"2018-12-15T22:01:37.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T03:36:39.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/suhdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-11T22:21:38.000Z","updated_at":"2018-12-15T22:01:38.000Z","dependencies_parsed_at":"2023-03-11T17:43:14.051Z","dependency_job_id":null,"html_url":"https://github.com/suhdev/bem-class-gen","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"0d1e95ad84bd46b70ffe138db720ff5f5743d5dd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhdev%2Fbem-class-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhdev%2Fbem-class-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhdev%2Fbem-class-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suhdev%2Fbem-class-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suhdev","download_url":"https://codeload.github.com/suhdev/bem-class-gen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944816,"owners_count":20858851,"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-12-16T02:17:29.638Z","updated_at":"2025-04-03T06:20:39.020Z","avatar_url":"https://github.com/suhdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bem-class-gen \n\nA utility object to generate BEM class names. The object also supports generating bootstrap 4 class names. \n\n\n## Usage \n\n```javascript\n\nimport {B} from 'bem-class-gen'; \n\nvar clz = B().bl('some-block'); \nconst clzBlockName = clz.bem;//sys-block \nconst clzElementName = clz.el('test').bem; //sys-block__test\nconst clzModName = clz.el('test').mod('modifier').bem; //sys-block__test--modifier\nconst clzModName = clz.el('test').amod('modifier').bem; //sys-block__test sys-block__test--modifier\n\n//bootstrap class names\n\nconst bootstrapMediaQuery = clz.s.col(12).l.col(6).bem ; //some-block col-sm-12 col-lg-6\nconst bootstrapJustityContent = clz.jcb.bem ; //justify content between\nconst bootstrapFlex = clz.flex.r.bem ; //sys-block d-flex flex-row \n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuhdev%2Fbem-class-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuhdev%2Fbem-class-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuhdev%2Fbem-class-gen/lists"}