npm.io
1.0.6 • Published 10 years ago

status-code-filter

Licence
GPL-3.0
Version
1.0.6
Deps
2
Vulns
0
Weekly
0

Status code filter

npm version

Eat URLs and HTTP status code(s) and return all the URL that match.

Usage

Functions return promises, you should use them asynchronously.

const mod = require('./'),
    urls = ['http://example.org', 'http://example.org/fakeurl.html']

mod.getStatusCode(urls)
    .then(function (data) {
        console.log(data)
    })

Keywords