{"id":16742775,"url":"https://github.com/yosuke-furukawa/react-nl2br","last_synced_at":"2025-05-16T15:05:17.126Z","repository":{"id":1617181,"uuid":"43305692","full_name":"yosuke-furukawa/react-nl2br","owner":"yosuke-furukawa","description":"Newlines to \u003cbr /\u003e for React ","archived":false,"fork":false,"pushed_at":"2025-05-12T19:42:58.000Z","size":151,"stargazers_count":77,"open_issues_count":7,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-12T20:49:28.051Z","etag":null,"topics":["nl2br","react"],"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/yosuke-furukawa.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,"zenodo":null}},"created_at":"2015-09-28T14:25:00.000Z","updated_at":"2025-01-07T16:01:35.000Z","dependencies_parsed_at":"2024-01-15T13:39:00.561Z","dependency_job_id":"b1997386-74d4-463c-b2d2-db757260cc7e","html_url":"https://github.com/yosuke-furukawa/react-nl2br","commit_stats":{"total_commits":70,"total_committers":15,"mean_commits":4.666666666666667,"dds":0.5857142857142856,"last_synced_commit":"84061528daeab28eb3517b6ebdcc681b78d18465"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosuke-furukawa%2Freact-nl2br","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosuke-furukawa%2Freact-nl2br/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosuke-furukawa%2Freact-nl2br/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosuke-furukawa%2Freact-nl2br/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yosuke-furukawa","download_url":"https://codeload.github.com/yosuke-furukawa/react-nl2br/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253823352,"owners_count":21969844,"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":["nl2br","react"],"created_at":"2024-10-13T01:24:52.114Z","updated_at":"2025-05-16T15:05:17.069Z","avatar_url":"https://github.com/yosuke-furukawa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"react-nl2br\n==============\n\n# USAGE\n\n```javascript\nconst nl2br = require('react-nl2br');\nconst result = nl2br('aaa\\nbbb\\nccc\\nddd');\nconsole.log(result); // aaa, ReactElement('br'), bbb, ReactElement('br'), ccc, ReactElement('br'), ddd\n```\n\n## in jsx\n\n```javascript\nconst React = require('react');\nconst nl2br = require('react-nl2br');\nvar Hello = React.createClass({\n  render: function() {\n    return (\n      \u003cdiv\u003eHello {nl2br(this.props.name)}\u003c/div\u003e\n    );\n  }\n});\n```\n\n# INSTALL\n\n```\n$ npm install react-nl2br -S\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosuke-furukawa%2Freact-nl2br","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyosuke-furukawa%2Freact-nl2br","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosuke-furukawa%2Freact-nl2br/lists"}