New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gplink

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gplink

This is a Angular Library which provide pipe to convert the url, email and mobile number to link format by using linkifyjs.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

GpLinkify

Overview

Angular pipe to convert url, email and mobile number from text to clickable or linkable. This library uses linkifyjs under the hood. All the thing which linkifyjs do all that functionality beed provided in this library with addition to mobile number clickable with custom format of mobile number.

Installation

npm install gplink --save

Example

Here pipe 'gplink' will convert all the email, urls and mobile number to clickable format from the text provided in title.

If you want to convert any specific formatted mobile number or phone numbers to clickable you need to provide it's regular expression as another argument.

#Note: Please keep in mind that when you provide regular expression that contain backward slash(), then do it twice to parse it properly. If you regular expression is like this, +?\d[\d -]{8,12}\d, then convert it like this, \+?\d[\d -]{8,12}\d. If you not provide any reg-ex then it will not convert any mobile numbers to clickable except indian mobile number format.

Keywords

Angular

FAQs

Package last updated on 10 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts