New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@iamcal/autolink-js

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

@iamcal/autolink-js

JS link formatting library

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NPM version NPM downloads Build Status Coverage Status

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();

// turn some text into linkified HTML
var html = a.link(text);

// also link up email addresses
html = a.linkEmail(text);


// TODO: document options

</script>

Version History

See CHANGES.md

Keywords

FAQs

Package last updated on 07 May 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc