# @arashgh/insta-js

> A fork of @androz2091/insta.js with some new features. Object-oriented library for sending and receiving messages via Instagram

Latest version **1.7.2** (published 2021-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @arashgh/insta-js
pnpm add @arashgh/insta-js
yarn add @arashgh/insta-js
bun add @arashgh/insta-js
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.7.2 |
| Published | 2021-09-07 |
| First published | 2021-09-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 277.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ArashGh |
| Maintainers | arashgh |

## Links

- npm: https://www.npmjs.com/package/@arashgh/insta-js
- Homepage: https://github.com/ArashGh/insta.js#readme
- Issues: https://github.com/ArashGh/insta.js/issues
- npm.io page: https://npm.io/package/@arashgh/insta-js

## Dependencies (6)

- [jimp](https://npm.io/package/jimp.md) ^0.16.1
- [get-urls](https://npm.io/package/get-urls.md) ^10.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [instagram_mqtt](https://npm.io/package/instagram_mqtt.md) ^1.2.1
- [@discordjs/collection](https://npm.io/package/@discordjs/collection.md) ^0.2.1
- [instagram-private-api](https://npm.io/package/instagram-private-api.md) ^1.45.1

## Recent versions

- 1.7.2 (latest) — 2021-09-07
- 1.7.1 — 2021-09-07
- 1.7.0 — 2021-09-07

## README

<img width="150" height="150" align="left" style="float: left; margin: 0 10px 0 0;" alt="Xiao" src="https://i.goopics.net/PO1L4.png">

# [Insta.js](https://npmjs.com/@arashgh/insta.js)

💬 Object-oriented library to interact with Instagram! Based on **[instagram-private-api](https://github.com/dilame/instagram-private-api)**, it is very similiar to **[discord.js](https://npmjs.com/discord.js)**.

## Installation
```
npm install @arashgh/insta.js
```

## Example

Here is a simple ping command made with the library:

```js
const Insta = require('@arashgh/insta.js');

const client = new Insta.Client();

client.on('connected', () => {
    console.log(`Logged in as ${client.user.username}`);
});

client.on('messageCreate', (message) => {
    if (message.author.id === client.user.id) return

    message.markSeen();

    if (message.content === '!ping') {
        message.reply('!pong');
    }
});

client.login('username', 'password');
```

## Credits

🧡 Big thanks to **[Nerixyz](https://github.com/Nerixyz)** and **[dilame](https://github.com/dilame)** and **[Androz](https://github.com/Androz2091)** for their libraries.

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