node-metainspector
node-metainspector copied to clipboard
console.log client.image() is undefiend and client.images() crashes server
I am trying to log out the images on a webpage and it does not work.
I have tried.
console.log 'client image ' + client.images() // Crashes server
console.log 'client image ' + client.image() // undefined
Here is the code I am using:
client = new MetaInspector('http://cnn.com', {})
client.on 'fetch', ->
console.log 'client image ' + client.images
console.log 'client links ' + client.links().join(",")
client.fetch()
console.logging out client.description() & client.links() seems to work fine.