# ingress-client

> ingress client lib

Latest version **0.1.0** (published 2013-08-24) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install ingress-client
pnpm add ingress-client
yarn add ingress-client
bun add ingress-client
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-08-24 |
| First published | 2013-08-24 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | nerdlabs |
| Maintainers | nerdlabs |

## Links

- npm: https://www.npmjs.com/package/ingress-client
- Repository: https://github.com/nerdlabs/ingress-client-public
- Issues: https://github.com/nerdlabs/ingress-client-public/issues
- npm.io page: https://npm.io/package/ingress-client

## Dependencies (1)

- [ingress-api](https://npm.io/package/ingress-api.md) git://git@github.com:nerdlabs/ingress-api-public.git

## Recent versions

- 0.1.0 (latest) — 2013-08-24

## README

# ingress-client

## disclaimer

this code is for educational purposes only. using it on production services will probably be against the service's ToS and get you banned.

## wtf?

ingress-client provides a high level abstraction over nerdlabs/ingress-api-public.
It enhances the JSON gameEntities with functionality for ease of use.

## usage

```javascript
var IngressClient = require('./lib/ingress-client');

var ingressClient = new IngressClient('user@domain.com', 'password');

ingressClient.login(function (err, handshake, client) {
	if (err) {
		console.log('cannot login', err);
		process.exit(1);
	}

	console.log('logged in');



	client.getInventory(function (inventory) {

		inventory.getItems(function (err, items) {
			if (err) {
				console.log('error getting inventory', err);
				process.exit(1);
			}

			console.log('received', items.length, 'items.');
		});

	});
});
```

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