# node-idevice

> Install apps on your ios device. Node wrapper around ideviceinstaller.

Latest version **0.1.6** (published 2016-05-27) · BSD license · 0 weekly downloads

## Install

```sh
npm install node-idevice
pnpm add node-idevice
yarn add node-idevice
bun add node-idevice
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2016-05-27 |
| First published | 2013-05-09 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mathieu Sabourin |
| Maintainers | imurchie, msabourin |
| Keywords | ios, install, device, ideviceinstaller |

## Links

- npm: https://www.npmjs.com/package/node-idevice
- npm.io page: https://npm.io/package/node-idevice

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2016-05-27
- 0.1.5 — 2015-04-14
- 0.1.4 — 2015-02-20
- 0.1.2 — 2013-05-09
- 0.1.1 — 2013-05-09
- 0.1.0 — 2013-05-09

## README

# node-idevice

Install apps to your ios device with node.

This project depends on ideviceinstaller from the [libimobiledevice](http://www.libimobiledevice.org/) project. The currently preferred way of obtaining the binary is to use brew.
```
brew install ideviceinstaller
```
You can then tell node-idevice to use the command:
```javascript
// Use executable found in your $PATH
var device = new IDevice();

// Or you can manually set the executable
var device = new IDevice(false, {cmd: './path/to/ideviceinstaller'});
```

If you want to build the binary yourself you can try:
```
./utils/steps
```
This should pull and build all the dependencies. Be warned this is pretty long.

We currently support installing, removing and listing apps on a device.
### Installing
```javascript
var ipa = path.resolve(__dirname, '../path/to/your/App.ipa');
device.install(ipa, function (err) {
	// Do stuff when app is installed
});

// If you want to be sure the callback executes with the app on device you can use
device.installAndWait(ipa, 'domain.organisation.App', function (err, success) {
    // Do stuff when app is on device and ready
})
```
### Note
ideviceinstaller consumes IPA packages, please see the [docs](https://github.com/OniOni/node-idevice/blob/master/docs/building_ipa.md) on how to get an IPA from your App.

### Removing
```javascript
device.remove('domain.organisation.App', function (err) {
	// Do stuff when app is installed
});
```
### Checking if an app is Installed
```javascript
device.isInstalled(appName, function (err, installed) {
	// Installed is true when app is found on device
});
```
### Listing Installed apps
```javascript
device.listInstalled(function (err, data) {
	// data is a list of objects, one per app
	// The object contains info about the app, currently 'name' and 'fullname'
});
```

---
_Source: https://npm.io/package/node-idevice · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
