Created
December 11, 2018 15:58
-
-
Save jgwill/d1dc9b6263396ab83ad953c434ce2935 to your computer and use it in GitHub Desktop.
How do I extract url in content using nodejs?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const text = 'Lorem ipsum dolor sit amet, //sindresorhus.com consectetuer adipiscing http://yeoman.io elit.'; | |
getUrls(text); | |
//=> Set {'http://sindresorhus.com', 'http://yeoman.io'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i get-urls --save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment