autolink-js - JS link formatting library

This library helps to detect URLs (and email addresses) in text, and turn them into links.
It is based on the original PHP version here: https://github.com/iamcal/lib_autolink
Installation
Either clone the git repo, or npm install @iamcal/autolink-js
Usage
<script src="autolink.min.js" type="text/javascript"></script>
<script type="text/javascript">
var a = new AutoLink();
var html = a.link(text);
html = a.linkEmail(text);
</script>
Version History
See CHANGES.md