1.2.9 • Published 6 years ago

image-vortex v1.2.9

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

image-vortex

Simple tool that returns an array of URLs scraped from the src attribute of all the img elements on a given web page.

nmp install --save image-vortex
npm run publisher
const ImageVortex = require('image-vortex');

// get a list of image srcs from a web page
ImageVortex.getImageURLs('http://www.ninjaPixel.io').then((data)=>{
    console.log(data);
}).catch((err)=>{
    console.log(err);
});

// upload an image to Amazon S3
// note that to do this you need to set the following environmental variables:
// AWS_ACCESS_KEY_ID
// AWS_SECRET_ACCESS_KEY
const ivParams = {bucketName: 'images.glulessapp.com'};
const vortex = new ImageVortex(ivParams);
vortex.saveImageToS3('http://a0.awsstatic.com/main/images/logos/aws_logo.png',  'media/aws_logo.png', function(err, res) {
    if (err)
        throw err;

    console.log('Uploaded data successfully!');
});
1.2.9

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago