#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
}
*/
});