jontv

1.1.0 • Public • Published

JonTV

Using the npm package will make you able to easily use the website to get info etc.

Usage:

using the ?v= input from the url and it will either return error or it will return a json

let JonTV = require('jontv');
JonTV('cm45gT2v', test);
function test(thing) {
	console.log(thing);
	try {
		let JSONobj = JSON.parse(thing);
		console.log(JSONobj.n);
	} catch(error) {
		console.log(error);
	}
}
JonTV.getuser('rK9JTIdB2eqsEkWQ', test);
JonTV.search('Creeper', search);
function search(thing) {
console.log(thing);
}

You can also try it out in the bot I made (Discord) Invite

Package Sidebar

Install

npm i jontv

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

2.98 kB

Total Files

3

Last publish

Collaborators

  • jonnygamingtv