# @cybernaut/core

> The foundation (the core) of all @cybernaut/engine-compatible APIs.

Latest version **14.0.0** (published 2017-09-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @cybernaut/core
pnpm add @cybernaut/core
yarn add @cybernaut/core
bun add @cybernaut/core
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 14.0.0 |
| Published | 2017-09-04 |
| First published | 2017-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Clemens Akens |
| Maintainers | clebert |
| Keywords | bdd, chrome, e2e, selenium, test, testing, ui, web, webdriver |

## Links

- npm: https://www.npmjs.com/package/@cybernaut/core
- Repository: https://github.com/clebert/cybernaut
- Homepage: https://cybernaut.js.org/
- Issues: https://github.com/clebert/cybernaut/issues
- npm.io page: https://npm.io/package/@cybernaut/core

## Dependencies (3)

- [@cybernaut/types](https://npm.io/package/@cybernaut/types.md) ^12.0.0
- [@cybernaut/utils](https://npm.io/package/@cybernaut/utils.md) ^14.0.0
- [deep-strict-equal](https://npm.io/package/deep-strict-equal.md) ^0.2.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 14.0.0 (latest) — 2017-09-04
- 13.0.0 — 2017-09-02
- 12.0.0 — 2017-09-01
- 11.0.0 — 2017-08-24

## README

# @cybernaut/core

[![Package Version][badge-npm-image]][badge-npm-link]
[![Build Status][badge-travis-image]][badge-travis-link]
[![Coverage Status][badge-coveralls-image]][badge-coveralls-link]

> The foundation (the core) of all [`@cybernaut/engine`][package-engine]-compatible APIs.

## Installation

```sh
npm install --save @cybernaut/core
```

## Type definitions

### External imports

- [`@cybernaut/types/lib/Accessor`][type-definition-accessor]
- [`@cybernaut/types/lib/Condition`][type-definition-condition]
- [`@cybernaut/types/lib/Predicate`][type-definition-predicate]

### @cybernaut/core/lib/ConditionBuilder

```ts
import {Accessor} from '@cybernaut/types/lib/Accessor';
import {Condition} from '@cybernaut/types/lib/Condition';
import {Predicate} from '@cybernaut/types/lib/Predicate';

export class ConditionBuilder {
  public constructor(description: string, accessor: Accessor, negated: boolean);

  public equalTo(value: any): Condition;

  public above(value: number): Condition;
  public atLeast(value: number): Condition;
  public atMost(value: number): Condition;
  public below(value: number): Condition;
  public between(minValue: number, maxValue: number): Condition;

  public containing(value: string): Condition;
  public matching(value: RegExp): Condition;
}
```

### @cybernaut/core/lib/Property

```ts
import {ConditionBuilder} from '@cybernaut/core/lib/ConditionBuilder';
import {Accessor} from '@cybernaut/types/lib/Accessor';

export class Property {
  public constructor(description: string, accessor: Accessor);

  public readonly is: ConditionBuilder;
  public readonly isNot: ConditionBuilder;
}
```

---
Built by (c) Clemens Akens. Released under the terms of the [MIT License][cybernaut-license].

[badge-npm-image]: https://img.shields.io/npm/v/@cybernaut/core.svg
[badge-npm-link]: https://www.npmjs.com/package/@cybernaut/core
[badge-travis-image]: https://travis-ci.org/clebert/cybernaut.svg?branch=master
[badge-travis-link]: https://travis-ci.org/clebert/cybernaut
[badge-coveralls-image]: https://coveralls.io/repos/github/clebert/cybernaut/badge.svg?branch=master
[badge-coveralls-link]: https://coveralls.io/github/clebert/cybernaut?branch=master

[cybernaut-license]: https://github.com/clebert/cybernaut/blob/master/LICENSE

[package-engine]: https://github.com/clebert/cybernaut/tree/master/@cybernaut/engine

[type-definition-accessor]: https://github.com/clebert/cybernaut/tree/master/@cybernaut/types#cybernauttypeslibaccessor
[type-definition-condition]: https://github.com/clebert/cybernaut/tree/master/@cybernaut/types#cybernauttypeslibcondition
[type-definition-predicate]: https://github.com/clebert/cybernaut/tree/master/@cybernaut/types#cybernauttypeslibpredicate

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