1.0.0 • Published 4 years ago
aruba-netedit v1.0.0
aruba-netedit
Superagent utilities for interacting with the Aruba NetEdit REST API
- Super lightweight
- Simple API
- Based on superagent's
Agent
class - Works with environment variables by default
Installation
$ npm install aruba-netedit
Usage
import { useClient } from 'aruba-netedit';
function requestGetImages(client) {
return client
.get('/images')
.query({ size: 50 });
}
const response = await useClient({ fn: requestGetImages });
Testing
Tests are performed on an actual Aruba NetEdit server whose credentials are defined by environment variables.
$ ARUBA_NETEDIT_HOST=... npm test
1.0.0
4 years ago