{"id":13535671,"url":"https://github.com/joelcolucci/node-quill-converter","last_synced_at":"2025-04-10T01:11:47.512Z","repository":{"id":31868176,"uuid":"129945197","full_name":"joelcolucci/node-quill-converter","owner":"joelcolucci","description":"Convert HTML to a Quill Delta or a Quill Delta to HTML","archived":false,"fork":false,"pushed_at":"2023-02-27T19:27:55.000Z","size":339,"stargazers_count":96,"open_issues_count":26,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T01:11:42.940Z","etag":null,"topics":["converter","html","nodejs","quill","quill-delta"],"latest_commit_sha":null,"homepage":null,"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/joelcolucci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-04-17T18:02:51.000Z","updated_at":"2025-01-27T07:34:10.000Z","dependencies_parsed_at":"2023-01-14T19:57:39.971Z","dependency_job_id":"f1b81ee9-57fe-4e87-8ad7-dacd7a6d6224","html_url":"https://github.com/joelcolucci/node-quill-converter","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelcolucci%2Fnode-quill-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelcolucci%2Fnode-quill-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelcolucci%2Fnode-quill-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelcolucci%2Fnode-quill-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joelcolucci","download_url":"https://codeload.github.com/joelcolucci/node-quill-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137888,"owners_count":21053775,"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":["converter","html","nodejs","quill","quill-delta"],"created_at":"2024-08-01T09:00:20.603Z","updated_at":"2025-04-10T01:11:47.491Z","avatar_url":"https://github.com/joelcolucci.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# node-quill-converter [![NPM version](https://img.shields.io/npm/v/node-quill-converter.svg)](https://www.npmjs.com/package/node-quill-converter)\n\u003e Convert HTML to a Quill Delta or a Quill Delta to HTML\n\nThe purpose of this package is to assist in migrating to or from the [Quill editor](https://quilljs.com/).\n\n## Installation\n```\n# Via NPM\nnpm install node-quill-converter --save\n\n# Via Yarn\nyarn add node-quill-converter\n```\n\n## Getting Started\n### Convert a plain text string to a Quill delta:\n```js\nconst { convertTextToDelta } = require('node-quill-converter');\n\nlet text = 'hello, world';\nlet delta = convertTextToDelta(text);\n\nconsole.log(JSON.stringify(delta)); // {\"ops\":[{\"insert\":\"hello, world\\n\"}]}\n```\n\n### Convert a HTML string to a Quill delta:\n```js\nconst { convertHtmlToDelta } = require('node-quill-converter');\n\nlet htmlString = '\u003cp\u003ehello, \u003cstrong\u003eworld\u003c/strong\u003e\u003c/p\u003e';\nlet delta = convertHtmlToDelta(htmlString);\n\nconsole.log(JSON.stringify(delta); // {\"ops\":[{\"insert\":\"hello, \"},{\"insert\":\"world\",\"attributes\":{\"bold\":true}}]}\n```\n\n### Convert a Quill delta to an HTML string:\n```js\nconst { convertDeltaToHtml } = require('node-quill-converter');\n\nlet html = convertDeltaToHtml(delta);\n\nconsole.log(html) ; // '\u003cp\u003ehello, \u003cstrong\u003eworld\u003c/strong\u003e\u003c/p\u003e'\n```\n\n## License\nMIT License Copyright (c) 2018 Joel Colucci","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelcolucci%2Fnode-quill-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoelcolucci%2Fnode-quill-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelcolucci%2Fnode-quill-converter/lists"}