{"id":15592144,"url":"https://github.com/derhuerst/br2nl","last_synced_at":"2025-08-10T14:09:59.276Z","repository":{"id":57107600,"uuid":"184082565","full_name":"derhuerst/br2nl","owner":"derhuerst","description":"Yet another function to replace HTML \u003cbr\u003e tags with newline characters.","archived":false,"fork":false,"pushed_at":"2019-10-01T22:01:12.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-08T15:33:17.618Z","etag":null,"topics":["br2nl","break","html","newline"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/br2nl#br2nl","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/derhuerst.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}},"created_at":"2019-04-29T14:05:39.000Z","updated_at":"2019-04-29T14:06:42.000Z","dependencies_parsed_at":"2022-08-20T17:11:21.661Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/br2nl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/derhuerst/br2nl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fbr2nl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fbr2nl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fbr2nl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fbr2nl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/br2nl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fbr2nl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269734149,"owners_count":24466554,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["br2nl","break","html","newline"],"created_at":"2024-10-02T23:55:53.673Z","updated_at":"2025-08-10T14:09:59.244Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://patreon.com/derhuerst"],"categories":[],"sub_categories":[],"readme":"# br2nl\n\nYet another function to **replace HTML `\u003cbr\u003e` tags with [newline characters](https://en.wikipedia.org/wiki/Newline)**.\n\n*Note:* This package does *not* do [HTML sanitization](https://en.wikipedia.org/wiki/HTML_sanitization)! It merely replaces `\u003cbr\u003e`.\n\n[![npm version](https://img.shields.io/npm/v/br2nl.svg)](https://www.npmjs.com/package/br2nl)\n[![build status](https://api.travis-ci.org/derhuerst/br2nl.svg?branch=master)](https://travis-ci.org/derhuerst/br2nl)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/br2nl.svg)\n[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)\n[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)\n\n\n## Installation\n\n```shell\nnpm install @derhuerst/br2nl\n```\n\n\n## Usage\n\n```js\nconst br2nl = require('@derhuerst/br2nl')\n\nconsole.log(br2nl('foo\u003cbr\u003ebar'))\nconsole.log(br2nl('foo\u003cbr\u003e bar'))\nconsole.log(br2nl('foo\u003cbr/\u003ebar'))\nconsole.log(br2nl('foo\u003cbr /\u003ebar'))\nconsole.log(br2nl('foo\u003cbr a=\"b\" /\u003ebar'))\n```\n\n\n## Contributing\n\nIf you have a question or need support using `br2nl`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/br2nl/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fbr2nl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fbr2nl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fbr2nl/lists"}