1.1.0 • Published 8 years ago

wikidot-ajax v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

WikidotAJAX Build Status Dependencies Status

Lib for performing requests to Wikidot AJAX connector. Returns instance of cheerio which is like jQuery-like object with loaded response body.

Install

$ npm install --save wikidot-ajax

Usage

const WikidotAJAX = require('wikidot-ajax');

const performRequest = wikidotKit({baseURL: 'http://scpfoundation.ru'});

performRequest({
	moduleName: 'users/UserInfoWinModule',
	user_id: 716422
}).then(($) => {
	console.log($('.content.modal-body h1').text());
	// => Resure
});

License

MIT © Gadzhi Gadzhiev