Skip to content

automaid/url-executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-executor

Allows fetching of one or multiple urls

API

const execute = require('@automaid/url-executor');

await execute('http://google.com'); // GET single url
await execute(['http://google.com', 'http://youtube.com']) // GET multiple urls
await execute({
    url: 'http://google.com',
    options: {
        method: 'POST',
        body: {
            hello: 'world'
        },
        timeout: 0, // 0 = unlimited
        redirect: 'follow', // manual, error, follow
        follow: 20, // 0 don't follow
    }
}); // POST single url with custom options
await execute([{
    url: 'http://google.com',
    options: {
        method: 'POST'
    }
}, 'http://youtube.com']); // GET one and POST one url

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published