{"id":37381756,"url":"https://github.com/chathurabuddi/draftjs-node-utils","last_synced_at":"2026-01-16T05:10:30.871Z","repository":{"id":64041267,"uuid":"572809211","full_name":"chathurabuddi/draftjs-node-utils","owner":"chathurabuddi","description":"🧰 This library provides a set of utility functions to convert draftJs content in a Node JS environment without browser dependencies.","archived":false,"fork":false,"pushed_at":"2025-06-12T12:18:51.000Z","size":404,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T22:24:46.115Z","etag":null,"topics":["draft-js","draftjs","html","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chathurabuddi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-01T04:26:22.000Z","updated_at":"2022-12-01T14:41:22.000Z","dependencies_parsed_at":"2022-12-01T10:15:43.299Z","dependency_job_id":null,"html_url":"https://github.com/chathurabuddi/draftjs-node-utils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/chathurabuddi/draftjs-node-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chathurabuddi%2Fdraftjs-node-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chathurabuddi%2Fdraftjs-node-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chathurabuddi%2Fdraftjs-node-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chathurabuddi%2Fdraftjs-node-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chathurabuddi","download_url":"https://codeload.github.com/chathurabuddi/draftjs-node-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chathurabuddi%2Fdraftjs-node-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["draft-js","draftjs","html","nodejs"],"created_at":"2026-01-16T05:10:30.226Z","updated_at":"2026-01-16T05:10:30.860Z","avatar_url":"https://github.com/chathurabuddi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DraftJs Node Utils\n\n[![ISC Licence](https://img.shields.io/github/license/chathurabuddi/draftjs-node-utils)](https://github.com/chathurabuddi/draftjs-node-utils/blob/master/LICENSE)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=chathurabuddi_draftjs-node-utils\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=chathurabuddi_draftjs-node-utils)\n[![codecov](https://codecov.io/gh/chathurabuddi/draftjs-node-utils/branch/main/graph/badge.svg)](https://codecov.io/gh/chathurabuddi/draftjs-node-utils)\n[![Latest Version](https://img.shields.io/github/v/release/chathurabuddi/draftjs-node-utils)](https://github.com/chathurabuddi/draftjs-node-utils/releases/latest)\n\nThis library provides a set of utility functions to convert draftJs content in a Node JS environment without browser dependencies.  \n_Implementation was extracted from [sstur/draft-js-utils](https://github.com/sstur/draft-js-utils) and modified_\n\n### Installation \u0026 Usage\nUse npm to install the package. Alternatively you can find the latest downloads on the [release page](https://github.com/chathurabuddi/draftjs-node-utils/releases).\n\n```bash\n$ npm install draftjs-node-utils\n```\n\n__1. Convert HTML to DraftJS__\n```javascript\nimport draftJs from 'draft-js';\nimport { htmlToDraftJs } from \"draftjs-node-utils\";\n\nconst contentState = htmlToDraftJs(html);\nconst draftJsRaw = draftJs.convertToRaw(contentState);\n```\n\n### Issues\nPlease make sure to read the\n[issue reporting checklist](https://github.com/chathurabuddi/draftjs-node-utils/blob/main/CONTRIBUTING.md#issue-reporting-guidelines)\nbefore opening an issue. Issues not conforming to the guidelines may be closed immediately.\n\n### Changelog\nDetailed changes for each release are documented in the [release notes](https://github.com/chathurabuddi/draftjs-node-utils/releases).\n\n### Contribution\nContributions, issues and feature requests are welcome. Feel free to check\n[issues page](https://github.com/chathurabuddi/draftjs-node-utils/issues)\nif you want to contribute. Please make sure to read the\n[contributing guide](https://github.com/chathurabuddi/draftjs-node-utils/blob/main/CONTRIBUTING.md)\nbefore making a pull request.\n\n### License\nCopyright © 2022 Chathura Buddhika ([chathurabuddi](http://chathurabuddi.lk))  \nThis project is [ISC](http://opensource.org/licenses/ISC) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchathurabuddi%2Fdraftjs-node-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchathurabuddi%2Fdraftjs-node-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchathurabuddi%2Fdraftjs-node-utils/lists"}