⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

allow creation of separate instances of superagent

Notifications You must be signed in to change notification settings

f2etw/superinstance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

superinstance

allow creation of separate instances of superagent

Build Status codecov npm downloads js-standard-style Commitizen friendly semantic-release

Usage

import request from 'superinstance';
const server = express();
const app = request(server); // or request('http://example.io/');
const instance = app.set('authorization', `Bearer ${token}`);

await instance.post('/graphql').send({ query, variables: { input } });
await instance.get('/image');
...

About

allow creation of separate instances of superagent

Resources

Stars

Watchers

Forks

Packages

No packages published