Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

microrouter

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microrouter - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "microrouter",
"version": "1.0.0",
"main": "index.js",
"version": "1.0.1",
"main": "lib/index.js",
"scripts": {

@@ -6,0 +6,0 @@ "test": "xo && ava"

@@ -1,2 +0,2 @@

:station: _**Micro Router -**_ A tiny and functional router Zeit's [micro](https://github.com/zeit/micro)
:station: _**Micro Router -**_ A tiny and functional router for Zeit's [micro](https://github.com/zeit/micro)

@@ -25,3 +25,3 @@ [![GitHub release](https://img.shields.io/github/release/pedronauck/micro-router.svg)]()

const { send } = require('micro')
const { router, get } = require('micro-router')
const { router, get } = require('microrouter')

@@ -38,7 +38,7 @@ const hello = (req, res) =>

You can a async function as your method handler:
You can use your handler as an async function:
```js
const { send } = require('micro')
const { router, get } = require('micro-router')
const { router, get } = require('microrouter')

@@ -55,3 +55,3 @@ const hello = async (req, res) =>

Each route is a single basic http method that you import from *micro-router* and has the same arguments:
Each route is a single basic http method that you import from `microrouter` and has the same arguments:

@@ -72,3 +72,3 @@ - `get(path, handler)`

```js
const { router, get } = require('micro-router')
const { router, get } = require('microrouter')
const request = require('some-request-lib')

@@ -89,3 +89,4 @@

The `handler` method is simple function that will make some action base on your path. The format of this method is `(res, res) => {}`
The `handler` method is simple function that will make some action base on your path.
The format of this method is `(res, res) => {}`

@@ -92,0 +93,0 @@ ## 🕺   Contribute

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc