Comparing version 0.0.3 to 0.0.4
@@ -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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8449