{"library":"vue-nl2br","type":"library","category":null,"description":"vue-nl2br is a Vue.js component designed to automatically convert newline characters (`\\n`) within a string prop into HTML `<br>` tags, effectively rendering multiline text with line breaks in the browser. It explicitly targets Vue 2 (`^2.0.0`) environments. The current stable version is 1.1.1, with the last known update in August 2021, indicating a very slow release cadence, if any, for future feature development. A key differentiator is its explicit discussion against simply using CSS `white-space: pre;`, suggesting it's intended for scenarios where semantic `<br>` tags are preferred or required over CSS-driven formatting, or when the `white-space` property causes unwanted side effects. It provides options for both global and local component registration and supports custom HTML tags and class names for the wrapping element.","language":"javascript","status":"maintenance","version":"1.1.1","tags":["javascript","vue","nl2br","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-nl2br","imports":["import Nl2br from 'vue-nl2br'","import Vue from 'vue'; import Nl2br from 'vue-nl2br'; Vue.component('nl2br', Nl2br)","import Nl2br, { Nl2brProps } from 'vue-nl2br'"]},{"cmd":"yarn add vue-nl2br","imports":[]},{"cmd":"pnpm add vue-nl2br","imports":[]}],"homepage":null,"github":"https://github.com/inouetakuya/vue-nl2br","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-nl2br","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vue-nl2br/compatibility"}}