{"id":17766654,"url":"https://github.com/floatdrop/bemjson-to-html","last_synced_at":"2025-03-15T13:30:52.652Z","repository":{"id":18855916,"uuid":"22072407","full_name":"floatdrop/bemjson-to-html","owner":"floatdrop","description":"BEMJSON to HTML serializer","archived":false,"fork":false,"pushed_at":"2015-11-18T19:39:46.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T01:52:42.531Z","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/floatdrop.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-21T16:53:51.000Z","updated_at":"2019-07-29T07:14:32.000Z","dependencies_parsed_at":"2022-09-14T03:01:25.882Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/bemjson-to-html","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/floatdrop%2Fbemjson-to-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fbemjson-to-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fbemjson-to-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fbemjson-to-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/bemjson-to-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243735797,"owners_count":20339530,"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-10-26T20:33:58.437Z","updated_at":"2025-03-15T13:30:52.646Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bemjson-to-html [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]\n\u003e BEMJSON to HTML serializer\n\nThis is optimized part of jsot-bh for generation HTML from constructed BEMJSON.\n\n## API\n\n### new BEMJSON([options])\n\nCreates serializer object.\n\n__Options__:\n\n * `jsAttrScheme` _Boolean_ - If `js`, attribute with js params will be prefixed with `return ` (default: `js`).\n * `jsAttrName` _String_ - Specifies name of attribute, that will contain `jsParams` (default: `onclick`).\n * `defaultTag` _String_ - Default tag name for block without `tag` property (default: `div`).\n\n### BEMJSON.toHtml(bemjson)\n\nReturns serialized HTML string.\n\n## Benchmark\n\n```\ntrivial\n4,133,717 op/s » bemjson-to-html\n2,371,357 op/s » bh\n\nsimple\n109,658 op/s » bemjson-to-html\n78,604 op/s » bh\n\nfull\n27,264 op/s » bemjson-to-html\n23,367 op/s » bh\n\nstringify\n1,508,587 op/s » stringify (no escaping)\n843,899 op/s » stringify (escaped with replace)\n388,025 op/s » stringify (escaped)\n312,156 op/s » bemjson-to-html\n220,219 op/s » bh\n```\n\n## License\n\nMIT (c) [Vesvolod Strukchinsky](floatdrop@gmail.com)\n\n[npm-url]: https://npmjs.org/package/bemjson-to-html\n[npm-image]: http://img.shields.io/npm/v/bemjson-to-html.svg\n\n[travis-url]: https://travis-ci.org/floatdrop/bemjson-to-html\n[travis-image]: http://img.shields.io/travis/floatdrop/bemjson-to-html.svg\n\n[depstat-url]: https://david-dm.org/floatdrop/bemjson-to-html\n[depstat-image]: https://david-dm.org/floatdrop/bemjson-to-html.svg?theme=shields.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fbemjson-to-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fbemjson-to-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fbemjson-to-html/lists"}