
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@redlotus/get-urls
Advanced tools
Get all URLs in a string
The URLs will be normalized.
Do not use this for any kind of security-related validation.
Please note the known limitation. You can work around this by setting requireSchemeOrWww to true.
npm install @redlotus/get-urls
yarn add @redlotus/get-urls
import { getUrls } from '@redlotus/get-urls';
const text = 'Lorem ipsum dolor sit amet, //sindresorhus.com consectetuer adipiscing http://yeoman.io elit.';
getUrls(text);
//=> Set {'http://sindresorhus.com', 'http://yeoman.io'}
Returns a Set of URLs.
Type: string
Type: object
All the normalize-url options in addition to:
Type: boolean
Default: false
Extract URLs that appear as query parameters in the found URLs.
Type: string[]
Default: []
Exclude URLs that match URLs in the given array.
Type: boolean
Default: false
Require URLs to have a scheme or leading www. to be considered an URL. When false, matches against a list of valid TLDs, so it will match URLs like unicorn.education.
Does not affect URLs in query parameters if using the extractFromQueryString option.
FAQs
Get all URLs in a string
The npm package @redlotus/get-urls receives a total of 1 weekly downloads. As such, @redlotus/get-urls popularity was classified as not popular.
We found that @redlotus/get-urls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.