get-first-url-from-string
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

get-first-url-from-string

Import the function, pass in a string.

The response will always be a string, either containing the 1st HTTPS URL it found or just an empty string.

No dependencies, see an improvement on the regex pattern, PRs are welcomed :)

For examples, please see the unit tests.

Dependents (0)

Package Sidebar

Install

npm i get-first-url-from-string

Weekly Downloads

17

Version

1.0.3

License

none

Unpacked Size

11.9 kB

Total Files

15

Last publish

Collaborators

  • carmichael.john