# promiseus

> promise oriented wrappers for api resources and aws services

Latest version **0.0.21** (published 2015-05-11) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.21 |
| Published | 2015-05-11 |
| First published | 2014-02-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+7 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | whtevn |
| Keywords | promises, api, resources, app |

## Links

- npm: https://www.npmjs.com/package/promiseus
- Repository: https://github.com/sdicgdev/promiseus
- Issues: https://github.com/sdicgdev/promiseus/issues
- npm.io page: https://npm.io/package/promiseus

## Dependencies (7)

- [q](https://npm.io/package/q.md) ~1.0.0
- [q-io](https://npm.io/package/q-io.md) ~1.10.9
- [aws-sdk](https://npm.io/package/aws-sdk.md) ~2.0.0-rc9
- [mongo-q](https://npm.io/package/mongo-q.md) 0.0.2
- [libxmljs](https://npm.io/package/libxmljs.md) latest
- [node-uuid](https://npm.io/package/node-uuid.md) ~1.4.1
- [underscore](https://npm.io/package/underscore.md) ~1.6.0

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 0.0.21 (latest) — 2015-05-11
- 0.0.20 — 2014-06-03
- 0.0.19 — 2014-04-15
- 0.0.18 — 2014-04-15
- 0.0.16 — 2014-04-15
- 0.0.15 — 2014-04-11
- 0.0.14 — 2014-04-10
- 0.0.12 — 2014-04-10
- 0.0.11 — 2014-04-10
- 0.0.10 — 2014-03-19
- 0.0.9 — 2014-03-18
- 0.0.8 — 2014-02-28
- 0.0.7 — 2014-02-27
- 0.0.6 — 2014-02-27
- 0.0.5 — 2014-02-27
- … 3 more at https://npm.io/package/promiseus/versions

## README

promiseus
=========

promise oriented wrappers for api resources and aws services

sample config file

	{
		"queue": {
			"url": "https://path/to/sqs",
			"creds": {
				"accessKeyId": "YourAccessKeyId",
				"secretAccessKey": "YourSecretAccessKey",
				"region": "aws-region-id"
			}
		},
		"bucket": {
			"name": "mrPostmanPayloads",
			"creds": {
				"accessKeyId": "YourAccessKeyId",
				"secretAccessKey": "YourSecretAccessKey",
				"region": "aws-region-id"
			}
		},
		"ses": {
			"source": "your@email.com",
			"creds": {
				"accessKeyId": "YourAccessKeyId",
				"secretAccessKey": "YourSecretAccessKey",
				"region": "aws-region-id"
			}
		},
		"twitter": {
			"host": "api.twitter.com",
			"path": "/1.1/",
			"ssl":true,
			"auth": "DEMO_KEY",
			"headers": {
				"ContentType": "text/json"
			}
		}
	}

sample application

	var env = require('promiseus/envGen'),
	    api = require('promiseus/apiResource'),
			twitter = new api();

	env.register('twitter', twitter)
	
	env.twitter.then(function (twitter){
			var twitterRequest = {
				screen_name: 'whtevn',
				count: 2
			}
			twitter.get('statuses/user_timeline.json', {query: twitterRequest})
				.then(function(response){
					console.log(response.status);
					console.log(response.data);
				});;
		});

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