url2markdown
v1.0.1
Published
Convert all url/links to markdown
Downloads
4
Maintainers
Readme
url2markdown
Converts all links/urls in a string to markdown
Installation
npm install url2markdown --save
Usage & Examples
var url2markdown = require('url2markdown')
console.log(url2markdown.convert("Wild link appeared www.google.com wow!")); //Wild link appeared [http://www.google.com](http://www.google.com) wow!
console.log(url2markdown.convert("Much links http://google.com")); //Much links [http://www.google.com](http://www.google.com) wow!
console.log(url2markdown.convert("So much http://www.google.com")); //So much [http://www.google.com](http://www.google.com) wow!
console.log(url2markdown.convert("wow https://www.google.com")); //wow [https://www.google.com](https://www.google.com) wow!