/linkify.js

A simple node package to convert the url-strings (having http://, https:// , www., or ftp:// ) into the html clickable links.

Primary LanguageJavaScript

doLink
=======

A simple node package to convert the url-strings (having http://, https:// , www., or ftp:// ) into the html clickable links.

  eg : As string like " this is the link to my git profile https://github.com/abhishekg785 ", will be converted simply into

  this is the link to my git profile <a href = 'https://github.com/abhishekg785/'>https://github.com/abhishekg785/</a>

Usage
=====

  var doLink = require('doLink');
  var stringURL = 'this is a link to fb www.fb.com';
  var processedURL = doLink(stringURL);

  console.log(processedURL);
  will give => this is a link to fb <a style = "color:#8e44ad" href="http://www.fb.com" target="_blank">www.fb.com</a>

Installation
============

  npm install doLink