A Node module for Airflow in Typescript. This uses the experimental Airflow API.
- Node 10+
Install the dependencies and devDependencies and start the server.
$ npm install --save airflow-api
import {client} from 'airflow-api'; or const CLIENT = require('airflow-api').client;
let _client = new CLIENT||client({
airflowUrl: 'http://127.0.0.1:8080'
});
_client.checkTest().then(result => console.log(result)).catch(err => console.error(err));
import * as AirflowEnum from 'airflow-api/dist/types' or const AIRFLOW_ENUMS = require('airflow-api/dist/types');
Want to contribute? Great! Make a Pr! Open your favorite Terminal and run these commands.
To release in javascript. The output is dumped in the dist folder:
$ npm run build
-
Uses Jest, Supertest, Chai - Integration Tests needed
npm test