# angular-assert-q-constructor

> Make sure $q is a constructor (1.3+). Throw if it isn't.

Latest version **1.0.1** (published 2015-06-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-assert-q-constructor
pnpm add angular-assert-q-constructor
yarn add angular-assert-q-constructor
bun add angular-assert-q-constructor
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-06-15 |
| First published | 2015-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | angular, q, constructor, function, assert, promise |

## Links

- npm: https://www.npmjs.com/package/angular-assert-q-constructor
- Repository: https://github.com/bendrucker/angular-assert-q-constructor
- Homepage: https://github.com/bendrucker/angular-assert-q-constructor#readme
- Issues: https://github.com/bendrucker/angular-assert-q-constructor/issues
- npm.io page: https://npm.io/package/angular-assert-q-constructor

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-06-15
- 1.0.0 — 2015-05-01

## README

# angular-assert-q-constructor [![Build Status](https://travis-ci.org/bendrucker/angular-assert-q-constructor.svg?branch=master)](https://travis-ci.org/bendrucker/angular-assert-q-constructor)
Make sure $q is a constructor (1.3+). Throw if it isn't.

## Installing

```sh
$ npm install angular-assert-q-constructor
```

## Usage

```js
angular
  .module('myApp', [])
  .run(function (assertQConstructor) {
    assertQConstructor()
  })
```

## API

#### `assertQConstructor(message)` -> `undefined`

If `$q` is a function, this is a noop. Otherwise (i.e. Angular <1.3) it will throw the `message`.

##### message

Type: `string`  
Default: `'$q is not a function'`

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