{"id":21883903,"url":"https://github.com/vovanr/bemstyla","last_synced_at":"2026-03-15T11:34:36.191Z","repository":{"id":29060506,"uuid":"32588326","full_name":"VovanR/bemstyla","owner":"VovanR","description":"Creates block__elem_mod-name_mod-value styl files","archived":false,"fork":false,"pushed_at":"2016-08-28T08:39:49.000Z","size":129,"stargazers_count":2,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T01:49:53.322Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VovanR.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-20T14:27:18.000Z","updated_at":"2018-12-12T08:39:12.000Z","dependencies_parsed_at":"2022-09-02T05:24:20.914Z","dependency_job_id":null,"html_url":"https://github.com/VovanR/bemstyla","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VovanR%2Fbemstyla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VovanR%2Fbemstyla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VovanR%2Fbemstyla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VovanR%2Fbemstyla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VovanR","download_url":"https://codeload.github.com/VovanR/bemstyla/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249019776,"owners_count":21199418,"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-28T09:47:24.065Z","updated_at":"2026-03-15T11:34:36.141Z","avatar_url":"https://github.com/VovanR.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bemstyla\n\n[![Commitizen friendly][commitizen-image]][commitizen-url]\n[![XO code style][codestyle-image]][codestyle-url]\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Coveralls Status][coveralls-image]][coveralls-url]\n[![Dependency Status][depstat-image]][depstat-url]\n[![DevDependency Status][depstat-dev-image]][depstat-dev-url]\n\n\u003e Creates block__elem_mod-name_mod-value styl files\n\nOne command\n```sh\nbemstyla block__elem_mod-name_mod-val\n```\n\nMakes dirs and styl files\n```sh\ntree\nblocks\n└── block\n    ├── __elem\n    │   ├── _mod-name\n    │   │   └── block__elem_mod-name_mod-val.styl\n    │   └── block__elem.styl\n    └── block.styl\n```\n\nAnd writes initial selector\n```sh\ncat blocks/block/block__elem.styl\n.block__elem\n    {}\n```\n\n## Install\n\n```sh\nnpm install --global bemstyla\n```\n\n## Usage\n\n```\nbemstyla --help\n\n  Usage: bemstyla [options]\n\n  Options:\n\n    -h, --help             output usage information\n    -V, --version          output the version number\n    -t, --type [type]      file type [styl]\n    -f, --format [format]  file content format [styl] (by default based on type)\n    -d, --dir [path]       output files location\n\n  Examples:\n\n    bemstyla -h\n    bemstyla block__elem\n    bemstyla block_mod block__elem_mod foo__bar foo__qux\n    bemstyla block--mod block__elem--mod\n    bemstyla header.pug body.jade footer.html\n    bemstyla -t css bar__baz_qux\n    bemstyla -f less foo_bar\n    bemstyla -d styles/blocks blockname\n```\n\n### [Pug (Jade)](https://github.com/pugjs/pug) file support\n\n```sh\nbemstyla index.pug\nbemstyla _content.pug _sidebar.pug _footer.pug\n```\n\n### HTML file support\n\n```sh\nbemstyla index.html\nbemstyla _content.html _sidebar.html _footer.html\n```\n\n### Output file extension\n\nDefault: `styl`\n\n```sh\nbemstyla -t less block__elem\nbemstyla --type css block__elem\n```\n\n### File content format\n\nDefault: `styl` based on file type\n\n```sh\nbemstyla -f less block__elem\nbemstyla --format css block__elem\n```\n\n**Formats**\n- Default, `styl`, `sass`\n\n  ```css\n  .block\n      {}\n  ```\n  Usage\n  ```styl\n  .block\n      border: none\n  ```\n\n- `css`, `less`, `scss`\n\n  ```css\n  .block {\n  }\n  ```\n  Usage\n  ```css\n  .block {\n      border: none;\n  }\n  ```\n\n### Output file location\n\n```sh\nbemstyla -d css/components block__elem\nbemstyla --dir styles/blocks block__elem\n```\n\n## Solutions with the same functionality\n* [Bemy](//github.com/f0rmat1k/bemy)\n* [TEATIME](//github.com/sullenor/teatime)\n* [BEM Tools](//github.com/bem/bem-tools) (`bem create`)\n\n## License\nMIT © [Vladimir Rodkin](https://github.com/VovanR)\n\n[commitizen-url]: http://commitizen.github.io/cz-cli/\n[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square\n\n[codestyle-url]: https://github.com/sindresorhus/xo\n[codestyle-image]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square\n\n[npm-url]: https://npmjs.org/package/bemstyla\n[npm-image]: http://img.shields.io/npm/v/bemstyla.svg?style=flat-square\n\n[travis-url]: https://travis-ci.org/VovanR/bemstyla\n[travis-image]: http://img.shields.io/travis/VovanR/bemstyla.svg?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/VovanR/bemstyla\n[coveralls-image]: http://img.shields.io/coveralls/VovanR/bemstyla.svg?style=flat-square\n\n[depstat-url]: https://david-dm.org/VovanR/bemstyla\n[depstat-image]: https://david-dm.org/VovanR/bemstyla.svg?style=flat-square\n\n[depstat-dev-url]: https://david-dm.org/VovanR/bemstyla\n[depstat-dev-image]: https://david-dm.org/VovanR/bemstyla/dev-status.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvovanr%2Fbemstyla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvovanr%2Fbemstyla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvovanr%2Fbemstyla/lists"}