0.2.4 • Published 7 years ago

@neoskop/aviation-client v0.2.4

Weekly downloads
11
License
MIT
Repository
-
Last release
7 years ago

Aviation

Aviation Client for Typescript

This library enables you to check against an Aviation Server whether a feature is supposedly enabled or not.

Usage

To add the library to your project:

$ yarn add @neoskop/aviation-client

To check for a feature:

let client: AviationClient = aviation().endpoint('http://localhost:8080').token('sup3rs3cr3t').mix();

client.feature('test-feature-1').then(f => {
  if (f.evaluate()) {
    console.log('feature is enabled!');
  } else {
    console.log('feature is disabled!');
  }
}).catch((err) => {
  console.log('could not retrieve feature from server!', err);
});

Test suite

To run integration tests in case you checked out the repository (awesome!):

$ docker pull neoskop/aviation:backend && docker-compose -f docker-compose.test.yml up --abort-on-container-exit --build
0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

1.0.0

7 years ago