All Projects → onbjerg → micro-visualize

onbjerg / micro-visualize

Licence: other
Visualizes requests and responses for services written with micro

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to micro-visualize

Micro Router
🚉 A tiny and functional router for Zeit's Micro
Stars: ✭ 621 (+1029.09%)
Mutual labels:  zeit, micro
Micro Medium Api
Microservice for fetching the latest posts of Medium with GraphQL.
Stars: ✭ 138 (+150.91%)
Mutual labels:  zeit, micro
dockerpkg-example
Example app running in small docker container using dockerpkg
Stars: ✭ 54 (-1.82%)
Mutual labels:  zeit, micro
saika
✍️Effortless info-site, done right.
Stars: ✭ 19 (-65.45%)
Mutual labels:  zeit
now-nuxt
A Now v2 Nuxt builder
Stars: ✭ 25 (-54.55%)
Mutual labels:  zeit
micro-cacheable
A micro utility for data caching
Stars: ✭ 35 (-36.36%)
Mutual labels:  micro
micro-unfurl
Small microservice that unfurls a URL and returns the OpenGraph meta data
Stars: ✭ 28 (-49.09%)
Mutual labels:  zeit
tcl-modules
A collection of pure Tcl, production-ready micro packages
Stars: ✭ 25 (-54.55%)
Mutual labels:  micro
unity-now
▲ Vercel Now plugin for Unity. Deploy WebGL builds with ease
Stars: ✭ 21 (-61.82%)
Mutual labels:  zeit
now-swift-example
Example for use Kitura framework and swift lang with https://zeit.co/now.
Stars: ✭ 18 (-67.27%)
Mutual labels:  zeit
netlify-cms-oauth-provider-node
A stateless external OAuth provider for netlify-cms with built-in support for Vercel serverless functions
Stars: ✭ 30 (-45.45%)
Mutual labels:  zeit
xkcd-api
💪 CORS enabled version of the XKCD API
Stars: ✭ 37 (-32.73%)
Mutual labels:  zeit
micro-ex-router
Express like router for micro.
Stars: ✭ 20 (-63.64%)
Mutual labels:  micro
micro
abp+micro+typescript+vue+element
Stars: ✭ 92 (+67.27%)
Mutual labels:  micro
webfunc
Universal Serverless Web Framework. Write Express apps ready to be deployed to Zeit-Now, Google Cloud Functions (incl. functions reacting to Pub/Sub topics or Storage changes), and AWS Lambdas.
Stars: ✭ 71 (+29.09%)
Mutual labels:  zeit
vercel-toast
💬 Framework-agnostic vercel design's toast component (≈1KB Gzipped)
Stars: ✭ 67 (+21.82%)
Mutual labels:  zeit
micro-starter
Micro 微服务实践
Stars: ✭ 391 (+610.91%)
Mutual labels:  micro
micro-query
Simple query string parser for Vercel's Micro
Stars: ✭ 23 (-58.18%)
Mutual labels:  micro
next-go
Production ready blog + boilerplate for Next.js 3.X
Stars: ✭ 255 (+363.64%)
Mutual labels:  zeit
miki
Wiki system in PHP+NoDB in just one file. 10s setup + auto-installed. Full Markdown support. Super fast and lightweight (-0.01MB gzip). Multi-User support. Minimal and beautiful.
Stars: ✭ 25 (-54.55%)
Mutual labels:  micro

micro-visualize NPM travis-ci Greenkeeper

Visualizes requests and responses for services written with micro.

Screenshot


Installation

npm install --save micro-visualize

Or even better

yarn add micro-visualize

Import and Usage Example

const visualize = require('micro-visualize')

module.exports = visualize(async function (req, res) {
  return 'Hello, world!'
})

API

visualize

Visualize requests and responses for a given function. The function is a no-op if log is not dev.

Parameters

  • fn Function Async function, your normal micro logic.
  • log String An optional log level (default: dev)

Examples

const visualize = require('micro-visualize')

module.exports = visualize(async function (req, res) {
  return 'Hello, world!'
})
const visualize = require('micro-visualize')

// Will only visualize requests/responses if
// ``process.env.NODE_ENV`` is ``dev``
module.exports = visualize(async function (req, res) {
  return 'Hello, world!'
}, process.env.NODE_ENV)

Returns an async Function.

Credits

Thanks to @rickharrison for his excellent PR which this project was heavily based on.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].