1.0.4 • Published 7 years ago

ezlo v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

ezlo

ezlo is a utility function for converting text containing a url into a clickable link.

It is attached to the String Prototype.

Usage

Basic

  require('ezlo');

  'Please visit our website at www.google.com'.ezlo()
    =>
      'Please visit our website at <a href="www.google.com">www.google.com</a>

Applying options

  require('ezlo');

  const opts = {
    redirectUrl: 'www.yahoo.com',
    alternateText: 'The website',
  };

  'Please visit our website at www.google.com'.ezlo(opts)
     =>
      'Please visit our website at <a href="www.yahoo.com">The website</a>'
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago