{"_id":"get-src","_rev":"4-34db145eedcc2637ce19e8fa76ccff93","name":"get-src","description":"Get the &#39;src&#39; value from any string containing a src=&#34;&#34; (embed, iframe, html, etc).","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"get-src","version":"1.0.0","description":"Get the &#39;src&#39; value from any string containing a src=&#34;&#34; (embed, iframe, html, etc).","license":"MIT","repository":{"type":"git","url":"git+https://github.com/radiovisual/get-src.git"},"author":{"name":"Michael Wuergler","email":"wuergler@gmail.com","url":"numetriclabs.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava"},"files":["index.js"],"keywords":["html","iframe","embed","string","any","from","val","value","attr","property","attribute","source","src","get"],"dependencies":{},"devDependencies":{"ava":"^0.17.0","coveralls":"^2.11.12","nyc":"^10.0.0","xo":"^0.17.0"},"nyc":{"reporter":["lcov","text"]},"gitHead":"b98f0fab663fa3376b753401369fac48e2a31c2b","bugs":{"url":"https://github.com/radiovisual/get-src/issues"},"homepage":"https://github.com/radiovisual/get-src#readme","_id":"get-src@1.0.0","_shasum":"30dcfd354b848b880a9cf349e529810981337cc6","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.1","_npmUser":{"name":"radiovisual","email":"senjudev@gmail.com"},"dist":{"shasum":"30dcfd354b848b880a9cf349e529810981337cc6","tarball":"https://registry.npmjs.org/get-src/-/get-src-1.0.0.tgz","integrity":"sha512-x+/BOtaR+q8YRNXzUIhVVGYKBde3nppASW0teDNecsEZkUAY9Z3JK4clRBtZzw/k++csF/PJP+VogwmYwVH+ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDn6t8EORhczKiZw7h+0cblyEpCbspob/zinyAo1zqfCAiAK+7KQK0oKeqkBi8sh8RH9E8ahHVyc7ajpTpNZA9KGDw=="}]},"maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-src-1.0.0.tgz_1482564262347_0.453432688023895"}},"1.0.1":{"name":"get-src","version":"1.0.1","description":"Get the &#39;src&#39; value from any string containing a src=&#34;&#34; (embed, iframe, html, etc).","license":"MIT","repository":{"type":"git","url":"git+https://github.com/radiovisual/get-src.git"},"author":{"name":"Michael Wuergler","email":"wuergler@gmail.com","url":"numetriclabs.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && nyc ava"},"files":["index.js"],"keywords":["html","iframe","embed","string","any","from","val","value","attr","property","attribute","source","src","get"],"dependencies":{},"devDependencies":{"ava":"^0.17.0","coveralls":"^2.11.12","nyc":"^10.0.0","xo":"^0.17.0"},"nyc":{"reporter":["lcov","text"]},"gitHead":"0ad6acfe829dc0a6f63e1e4e7db6f17d05da2a26","bugs":{"url":"https://github.com/radiovisual/get-src/issues"},"homepage":"https://github.com/radiovisual/get-src#readme","_id":"get-src@1.0.1","_shasum":"ca11dbe4a93c7f3aa85cec95fcb0b2dfaa9539ee","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.1","_npmUser":{"name":"radiovisual","email":"senjudev@gmail.com"},"dist":{"shasum":"ca11dbe4a93c7f3aa85cec95fcb0b2dfaa9539ee","tarball":"https://registry.npmjs.org/get-src/-/get-src-1.0.1.tgz","integrity":"sha512-fwaOEu3rOB1tBwbQGp1g3IJSgNFCYLxEivr3j6YaDQFVgALOiB3AXlXtMewycWKPeLq03x+0ShQY+wm87cP1BQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICXhGvDwN9MR71GnXofzecAQj13+2MTm49SNC1O1oHj8AiEAu+x+CkcZx6xBYVAMGADtUELDraDfWcoM4ImjxZmA8C8="}]},"maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/get-src-1.0.1.tgz_1482565363405_0.04529488179832697"}}},"readme":"# get-src [![Build Status](https://travis-ci.org/radiovisual/get-src.svg?branch=master)](https://travis-ci.org/radiovisual/get-src) [![Coverage Status](https://coveralls.io/repos/github/radiovisual/get-src/badge.svg?branch=master)](https://coveralls.io/github/radiovisual/get-src?branch=master)\n\n> Get the &#39;src&#39; value from any string containing a src=&#34;&#34; (embed, iframe, html, etc).\n\n\n## Install\n\n```\n$ npm install --save get-src\n```\n\n\n## Usage\n\n```js\nconst getSrc = require('get-src');\n\ngetSrc('<image src=\"image.png\" />');\n//=> 'image.png'\n\ngetSrc('<iframe width=\"400\" height=\"300\" src=\"video.mp4\"></iframe>');\n//=> 'video.mp4'\n```\n\n\n## API\n\n### getSrc(input)\n\n#### input\n\nType: `string`\n\nThe string containing the `src=\"\"` from which you want to extract the src value.\n\n## Double Quotes Only\n\nCurrently, there is only support for double quotes, meaning the value you want to extract must\nrest inside two double quotes:\n\n**Valid**\n```js\nsrc=\"this is valid\"\n```\n\n**Invalid**\n```js\nsrc='this will return undefined'\n```\n\n**Pull requests are welcome if you want to add support for double AND single quotes.**\n\n## License\n\nMIT © [Michael Wuergler](http://numetriclabs.com)\n","maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}],"time":{"modified":"2022-06-18T07:55:04.734Z","created":"2016-12-24T07:24:24.504Z","1.0.0":"2016-12-24T07:24:24.504Z","1.0.1":"2016-12-24T07:42:44.027Z"},"homepage":"https://github.com/radiovisual/get-src#readme","keywords":["html","iframe","embed","string","any","from","val","value","attr","property","attribute","source","src","get"],"repository":{"type":"git","url":"git+https://github.com/radiovisual/get-src.git"},"author":{"name":"Michael Wuergler","email":"wuergler@gmail.com","url":"numetriclabs.com"},"bugs":{"url":"https://github.com/radiovisual/get-src/issues"},"license":"MIT","readmeFilename":"readme.md"}