# apis-helpers

> Helper methods and utils for apis

Latest version **0.0.1** (published 2014-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install apis-helpers
pnpm add apis-helpers
yarn add apis-helpers
bun add apis-helpers
```

## 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.0.1 |
| Published | 2014-01-02 |
| First published | 2014-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kristján Ingi Mikaelsson |
| Maintainers | arnorhs |
| Keywords | apis, browser, helper |

## Links

- npm: https://www.npmjs.com/package/apis-helpers
- Repository: https://github.com/arnorhs/apis-helpers
- Issues: https://github.com/arnorhs/apis-helpers/issues
- npm.io page: https://npm.io/package/apis-helpers

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-01-02

## README

# apis-helpers

Helper functions used in the [apis](https://github.com/kristjanmik/apis) project.

### installation

```sh
$ npm install apis-helpers
```

### Usage
```javascript
var helpers = require('apis-helpers');

// there are a few methods. getting a random user agent:
console.log(helpers.browser());
```

### Properties
- `helpers.currency`: A an object mapping a currency name to a short version and the icelandic name.

### Methods
- `helpers.mergeObjects(obj1, obj2)`: merges properties of one object to the other. No deep clone. You could just as well use
  one of the thousands of such modules out there
- `helpers.browser()`: returns a random browser user agent. Useful for scraping
- `helpers.deArrayfy(object)`: Takes an object and an array and iterates thorugh them. If the object/array contains an array
  with the lenght of 1, it will flatten it out to reference the contents of that array directly.

### License
MIT

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