Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

check in Recat if an url is of image or video

const isImageUrl = require('is-image-url'); isImageUrl('https://timedotcom.files.wordpress.com/2015/08/gettyimages-482708894.jpg?quality=65&strip=color&w=1100');//=> true isImageUrl('http://time.com/3981644/hong-kong-breast-assault-protest/');//=> false
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #check #Recat #url #image #video
ADD COMMENT
Topic
Name
1+3 =