form-data
Newman-Telegram-API
form-data | Newman-Telegram-API | |
---|---|---|
2 | 1 | |
2,253 | 6 | |
0.4% | - | |
0.0 | 10.0 | |
2 days ago | over 1 year ago | |
JavaScript | JavaScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
form-data
-
Run API tests with Newman and send reports to Telegram
The next request turned out to be a little more difficult to implement because it had to send a report.html file inside it, which first needed to be converted using the encoding type multipart form-data. Therefore to create readable "multipart/form-data" streams, I needed to use the Form-Data library. In order to install it locally, used the following command:
-
Send a File With Axios in Node.js
Because we don't have access to the FormData interface in Node.js as we do in the browser, we use the form-data library to construct a form. This is similar to a
Newman-Telegram-API
-
Run API tests with Newman and send reports to Telegram
This project with detailed installation and usage instructions is completely available here.
What are some alternatives?
wretch - A tiny wrapper built around fetch with an intuitive syntax. :candy:
node-fetch - A light-weight module that brings the Fetch API to Node.js
multer - Node.js middleware for handling `multipart/form-data`.
deasync - Turns async function into sync via JavaScript wrapper of Node event loop
telegram-bot-ruby - Ruby wrapper for Telegram's Bot API
newman-reporter-htmlextra - A HTML reporter for Postman's Command Line Runner, Newman. Includes Non Aggregated Runs broken down by Iterations, Skipped Tests, Console Logs and the handlebars helpers module for better custom templates.
node-crc32-stream - a streaming CRC32 checksumer (now with deflate support)
dotenv - Loads environment variables from .env for nodejs projects.
Newman - Newman is a command-line collection runner for Postman
Slashboard-pulsar - A simple dashboard to keep track of all your active devices/servers
gulp-execa - Gulp.js command execution for humans