Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alex2844/formsender

FORMSENDER - Инструмент для тестирования api
https://github.com/alex2844/formsender

Last synced: 10 days ago
JSON representation

FORMSENDER - Инструмент для тестирования api

Awesome Lists containing this project

README

        

# FORMSENDER

[![Version](https://img.shields.io/npm/v/formsender.svg)](https://www.npmjs.org/package/formsender)

### Online

https://alex2844.github.io/formsender/

### Cli
```
PORT=3000 formsender
```

### Api
```
const
Fastify = require('fastify'),
formsender = require('formsender');

formsender(Fastify()).then(fastify => {
fastify.listen(3000, () => console.log('Server start'));
});
```
or
```
(Fastify()
.register(formsender)
.listen(3000, () => console.log('Server start'))
);
```
or
```
(Fastify()
.register(formsender, { // http://localhost:3000/formsender/
prefix: '/formsender'
})
.get('/', async (req, rep) => { // http://localhost:3000/
return 'Index page';
})
.listen(3000, () => console.log('Server start'))
);
```

## Installation
```
npm install -g formsender
```