Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neoskop/aviation-client

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoskop/aviation-client

![Aviation](https://bytebucket.org/neoskop/aviation-client-typescript/raw/master/logo.png)

  • 0.2.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 12 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc