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.1.5
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
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.enabled) {
    console.log('feature is enabled!');
  } else {
    console.log('feature is disabled!');
  }
}).catch(() => {
  console.log('could not retrieve feature from server!');
});

Test suite

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

$ docker-compose -f docker-compose.test.yml up --abort-on-container-exit --build

FAQs

Package last updated on 23 Jun 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