Socket
Socket
Sign inDemoInstall

cydia-api-node

Package Overview
Dependencies
3
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cydia-api-node

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


Version published
Weekly downloads
39
decreased by-9.3%
Maintainers
1
Install size
10.1 MB
Created
Weekly downloads
 

Readme

Source

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

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

cydia.getRepo('com.ziph0n.pickpocket') //Use the package name and not the display name
.then(repo => {
	console.log(repo); 
	/*
		{
			name: "BigBoss",
			link: "http://apt.thebigboss.org/repofiles/cydia/"
		}
	*/
});

.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(), .getPrice(), and .getRepo() in one function
const cydia = require('cydia-api-node');

cydia.getAllInfo('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.getAllInfo('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,
			repo: {
				name: "BigBoss",
				link: "http://apt.thebigboss.org/repofiles/cydia/"
			}
		}
	*/
});

Keywords

FAQs

Last updated on 27 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc