microrouter
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7496
94