🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

get-src

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

get-src - npm Package Compare versions

Comparing version

to
1.0.1

2

index.js
'use strict';
module.exports = function (input) {
if (typeof input !== 'string') {
throw new TypeError(`Expected a string, got ${typeof input}`);
throw new TypeError('get-src expected a string');
}

@@ -6,0 +6,0 @@ var re = /src="(.*?)"/gm;

{
"name": "get-src",
"version": "1.0.0",
"version": "1.0.1",
"description": "Get the 'src' value from any string containing a src="" (embed, iframe, html, etc).",

@@ -5,0 +5,0 @@ "license": "MIT",