Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-nl2br

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-nl2br - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

6

CHANGELOG.md
# Changelog
## [1.1.0](https://github.com/inouetakuya/vue-nl2br/compare/v1.0.0...v1.1.0) (2022-06-11)
### Features
- Allow null text ([#63](https://github.com/inouetakuya/vue-nl2br/issues/63)) ([0065659](https://github.com/inouetakuya/vue-nl2br/commit/0065659f3a9cdfa485ce744a2f42e9d4f510a20c))
## [1.0.0](https://github.com/inouetakuya/vue-nl2br/compare/v0.2.0...v1.0.0) (2022-06-10)

@@ -4,0 +10,0 @@

3

package.json
{
"name": "vue-nl2br",
"version": "1.0.0",
"version": "1.1.0",
"description": "A vue component that turns new lines into line breaks.",

@@ -50,2 +50,3 @@ "keywords": [

"ts-jest": "28.0.4",
"ts-node": "10.8.1",
"typescript": "4.7.3",

@@ -52,0 +53,0 @@ "vue": "2.6.14",

@@ -75,3 +75,3 @@ # vue-nl2br

- Type: `String`
- Required: true
- Default: null
- `className`: HTML class name(s)

@@ -81,4 +81,12 @@ - Type: `String`

Note: when `text` property is empty or null, it renders an empty tag. ex) `<p></p>`.
If you prefer to render nothing at all, use `v-if` directive:
```html
<nl2br v-if="myText" tag="p" :text="myText" />
```
## License
[MIT](https://opensource.org/licenses/MIT)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc