Skip to content

sardonisser/cydia-api-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#cydia-api-node

Just a simple node library for the cydia api. Used for @TweakBot#2861 in Discord.

#How To Use


.getPrice(string) - Get price for package.
const cydia = require('cydia-api-node');

cydia.getPrice('com.ziph0n.pickpocket') //Use the package name and not the display name
.then(price => {
	console.log(price); //1.99
});

.getInfo(string) - Basic Info
const cydia = require('cydia-api-node');

cydia.getInfo('com.ziph0n.pickpocket') //Use the package name or the display name. Case-insensitive
.then(info => {
	console.log(info);
	/* 
		{ 
			display: 'PickPocket',
			name: 'com.ziph0n.pickpocket',
			section: 'Tweaks',
			summary: 'A Powerful, Full Featured and Highly Customizable Tweak Against Thieves!',
			version: '1.4'
		}
	*/
});
cydia.getInfo('PickPocket') //Use the package name or the display name. Case-insensitive
.then(info => {
	console.log(info);
	/* 
		{ 
			display: 'PickPocket',
			name: 'com.ziph0n.pickpocket',
			section: 'Tweaks',
			summary: 'A Powerful, Full Featured and Highly Customizable Tweak Against Thieves!',
			version: '1.4'
		}
	*/
});

.getAllInfo(string) - .getInfo() and .getPrice() in one function
const cydia = require('cydia-api-node');

cydia.getInfo('com.ziph0n.pickpocket') //Use the package name or the display name. Case-insensitive
.then(info => {
	console.log(info);
	/* 
		{ 
			display: 'PickPocket',
			name: 'com.ziph0n.pickpocket',
			section: 'Tweaks',
			summary: 'A Powerful, Full Featured and Highly Customizable Tweak Against Thieves!',
			version: '1.4',
			price: 1.99
		}
	*/
});
cydia.getInfo('PickPocket') //Use the package name or the display name. Case-insensitive
.then(info => {
	console.log(info);
	/* 
		{ 
			display: 'PickPocket',
			name: 'com.ziph0n.pickpocket',
			section: 'Tweaks',
			summary: 'A Powerful, Full Featured and Highly Customizable Tweak Against Thieves!',
			version: '1.4',
			price: 1.99
		}
	*/
});

About

Unofficial node library for https://cydia.saurik.com/api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published