UNPKG

website

Version:

A set of tools for extracting information out of a website.

23 lines (20 loc) 588 B
/* * website * Tools for extracting information out of a website. * * Licensed under the MIT: * http://www.opensource.org/licenses/mit-license.php * * Copyright (c) 2013, André König (andre.koenig@gmail.com) * */ var website = require('../'), assert = require('assert'); module.exports = function () { 'use strict'; website.getTitle('http://google.de', function (err, title) { assert.equal(err, null, 'There is an error object while fetching the title.'); assert.ok(title, 'Title is not okay.'); assert.equal(title, 'Google'); }); };