1.0.0 • Published 9 years ago

isocket-macula-autolink v1.0.0

Weekly downloads
6
License
-
Repository
github
Last release
9 years ago

Build Status Coverage Status

automatically link and ellipsize URLs in the DOM

This is just an AMD jQuery plugin wrapper of autolink-js

Getting Started

Install the module with Bower:

bower install isocket-macula-autolink --save

Usage

define([
  "jquery",
  "../lib/isocket-macula-autolink" // no exports
], function($) {
  $el = $('<p>hello http://google.com</p>')
  $el.autolink()
  // $el.html() is now "<p>hello <a href=http://google.com>http://google.com</a></p>"
})

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Testing

Run just the unit tests (fastest)

grunt