Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex2844/formsender
FORMSENDER - Инструмент для тестирования api
https://github.com/alex2844/formsender
Last synced: 10 days ago
JSON representation
FORMSENDER - Инструмент для тестирования api
- Host: GitHub
- URL: https://github.com/alex2844/formsender
- Owner: alex2844
- Created: 2020-02-22T06:44:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-25T07:38:20.000Z (almost 5 years ago)
- Last Synced: 2024-12-09T09:58:47.699Z (about 1 month ago)
- Language: HTML
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```