Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

embedjs

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embedjs - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

lib/embedjs.js

@@ -38,3 +38,3 @@ var urlExtractor = require('url-extractor');

'provider_name': 'YouTube',
'thumbnail': 'https://img.youtube.com/vi/' + youtubeId + '/sddefault.jpg',
'thumbnail': 'https://i.ytimg.com/vi/' + youtubeId + '/hqdefault.jpg',
'id': youtubeId,

@@ -41,0 +41,0 @@ 'embed': this.youtube(url, youtubeId, options)

{
"name": "embedjs",
"version": "0.0.3",
"version": "0.0.4",
"description": "Extract embed information for all the media links in your texts",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -33,3 +33,3 @@ # Embed.js

provider_name: 'YouTube',
thumbnail: 'https://img.youtube.com/vi/waiCd_CVxdc/sddefault.jpg',
thumbnail: 'https://i.ytimg.com/vi/waiCd_CVxdc/hqdefault.jpg',
id: 'waiCd_CVxdc',

@@ -36,0 +36,0 @@ embed: '<iframe width="100" height="120" src="//www.youtube.com/embed/waiCd_CVxdc?autoplay=1" frameborder="0" scrolling="no" allowfullscreen></iframe>' } ]

var embedjs = require('./../lib/embedjs');
var text = 'Lorem ipsum dolor sit amet https://www.twitch.tv/johnnydarko420, consectetur adipiscing elit, https://soundcloud.com/liluzivert/do-what-i-want-produced-by-maaly-raw-don-cannon sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in https://www.youtube.com/watch?v=waiCd_CVxdc reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, https://www.google.fr/?gws_rd=ssl sunt in culpa qui officia deserunt mollit anim id est laborum.';
var embeds = embedjs.getAll(text, { width: '100', height: '120'});
var embeds = embedjs.getAll(text);
console.log(embeds);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc