{"id":14503724,"url":"https://github.com/PirateDevCom/editorjs-delimiter","last_synced_at":"2025-08-31T08:31:26.969Z","repository":{"id":240285194,"uuid":"802186757","full_name":"CoolBytesIN/editorjs-delimiter","owner":"CoolBytesIN","description":"Delimiter Block Tool for Editor.js","archived":false,"fork":false,"pushed_at":"2024-08-16T10:20:21.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-16T00:35:31.226Z","etag":null,"topics":["block-tool","codex-editor","coolbytes","delimiter","editorjs","editorjs-plugin"],"latest_commit_sha":null,"homepage":"https://apps.coolbytes.in/editorjs-delimiter","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/CoolBytesIN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-05-17T17:31:15.000Z","updated_at":"2024-11-08T01:37:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"08e2d0be-b2c9-4b62-b3ed-d8b5c76008ae","html_url":"https://github.com/CoolBytesIN/editorjs-delimiter","commit_stats":null,"previous_names":["coolbytesin/editorjs-delimiter"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolBytesIN%2Feditorjs-delimiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolBytesIN%2Feditorjs-delimiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolBytesIN%2Feditorjs-delimiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoolBytesIN%2Feditorjs-delimiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoolBytesIN","download_url":"https://codeload.github.com/CoolBytesIN/editorjs-delimiter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231582995,"owners_count":18395818,"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":["block-tool","codex-editor","coolbytes","delimiter","editorjs","editorjs-plugin"],"created_at":"2024-09-03T20:00:29.926Z","updated_at":"2025-08-31T08:31:21.688Z","avatar_url":"https://github.com/CoolBytesIN.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":["Block Tools"],"readme":"# Delimiter block tool for Editor.js\n\nThis [Editor.js](https://editorjs.io/) block tool extends [@editorjs/delimiter](https://github.com/editor-js/delimiter) to include more styles - `dash` and `line`. For line style, more options are also available under block settings menu (see [Preview](https://github.com/CoolBytesIN/editorjs-delimiter?tab=readme-ov-file#preview)).\n\n## Preview\n\n#### Block Tool\n![delimiter](https://api.coolbytes.in/media/handle/view/image/e239ac92-3cc4-44a0-9057-69da18ebf66d/)\n\n#### Block Settings\n![settings](https://api.coolbytes.in/media/handle/view/image/3f5be944-b88f-47e6-93ef-a20adb06c9cf/)\n\n## Installation\n\n**Using `npm`**\n\n```sh\nnpm install @coolbytes/editorjs-delimiter\n```\n\n**Using `yarn`**\n\n```sh\nyarn add @coolbytes/editorjs-delimiter\n```\n\n## Usage\n\nInclude it in the `tools` property of Editor.js config:\n\n```js\nconst editor = new EditorJS({\n  tools: {\n    delimiter: Delimiter\n  }\n});\n```\n\n## Config Params\n\n|Field|Type|Optional|Default|Description|\n|---|---|---|---|---|\n|styleOptions|`string[]`|`Yes`|['star', 'dash', 'line']|All supported delimiter styles|\n|defaultStyle|`string`|`Yes`|'star'|Preferred delimiter style|\n|lineWidthOptions|`number[]`|`Yes`|[8, 15, 25, 35, 50, 60, 100]|All supported line width options (%). Applicable for 'line' style only|\n|defaultLineWidth|`number`|`Yes`|25|Preferred line width. Applicable for 'line' style only|\n|lineThicknessOptions|`number[]`|`Yes`|[1, 2, 3, 4, 5, 6]|All supported line thickness options. Applicable for 'line' style only|\n|defaultLineThickness|`number`|`Yes`|2|Preferred line thickness. Applicable for 'line' style only|\n\n\u0026nbsp;\n\n```js\nconst editor = EditorJS({\n  tools: {\n    delimiter: {\n      class: Delimiter,\n      config: {\n        styleOptions: ['star', 'dash', 'line'],\n        defaultStyle: 'star',\n        lineWidthOptions: [8, 15, 25, 35, 50, 60, 100],\n        defaultLineWidth: 25,\n        lineThicknessOptions: [1, 2, 3, 4, 5, 6],\n        defaultLineThickness: 2,\n      }\n    }\n  }\n});\n```\n\n## Output data\n\n|Field|Type|Availability|Description|\n|---|---|---|---|\n|style|`string`|**All Styles**|Delimiter Style|\n|lineWidth|`number`|`line`|Width of line style delimiter|\n|lineThickness|`number`|`line`|Thickness of line style delimiter|\n\n\u0026nbsp;\n\nExample:\n\n```json\n{\n  \"time\": 1715969561758,\n  \"blocks\": [\n    {\n      \"id\": \"_K5QcJHHuK\",\n      \"type\": \"delimiter\",\n      \"data\": {\n        \"style\": \"line\",\n        \"lineWidth\": 25,\n        \"lineThickness\": 2\n      }\n    }\n  ],\n  \"version\": \"2.29.1\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPirateDevCom%2Feditorjs-delimiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPirateDevCom%2Feditorjs-delimiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPirateDevCom%2Feditorjs-delimiter/lists"}