# idevicelist

> When we connect our apple devices via usb, we get the model number, not other basic details such as generation, storage, color etc. I made this small utility that will get you all required basic details for apple devices.

Latest version **1.1.0** (published 2023-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install idevicelist
pnpm add idevicelist
yarn add idevicelist
bun add idevicelist
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2023-08-25 |
| First published | 2023-08-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | rdsoftllp |
| Maintainers | rdsoftllp |
| Keywords | iphone, idevice, idevicelist, ios, apple, ipad, ipod |

## Links

- npm: https://www.npmjs.com/package/idevicelist
- Repository: https://github.com/rdssllp/idevicelist
- Homepage: https://github.com/rdssllp/idevicelist#readme
- Issues: https://github.com/rdssllp/idevicelist/issues
- npm.io page: https://npm.io/package/idevicelist

## 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

- 1.1.0 (latest) — 2023-08-25
- 1.0.1 — 2023-08-22
- 1.0.0 — 2023-08-20

## README

# IDeviceList

When we connect our apple devices via usb, we get the model number, not other basic details such as generation, storage, color etc. I made this small utility that will get you all required basic details for apple devices.




## Install instruction

use npm or yarn

```bash
  npm add idevicelist --save
```
or

```bash
  yarn add idevicelist
```

Import lib

```bash
  import { getAllDevices, searchByModel, searchByType } from 'idevicelist';
```

Call the functions

```bash
  const device = searchByModel('MM9P3');
```


## API Reference

#### Get all devices

```node
  getAllDevices()
```

#### Get device by model

```node
  searchByModel(MODEL)
```

| Parameter | Type     | Description                       |
| :-------- | :------- | :-------------------------------- |
| `MODEL`      | `string` | **Required**. Model of device to fetch |

#### get devices by type

```node
  searchByType(TYPE)
```

| Parameter | Type     | Description                       |
| :-------- | :------- | :-------------------------------- |
| `TYPE`      | `string` | **Required**. Type of devices to fetch |


## Roadmap

- Add Airtag support

- Add Apple TV support

- Add Homepod support

- Add Mac support

- Add other apple accessories support


## Contributing

Contributions are always welcome!

See `contributing.md` for ways to get started.

Please adhere to this project's `code of conduct`.

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