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

lark-router

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lark-router - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

index.js

@@ -13,2 +13,3 @@ /**

import KoaRouter from 'koa-router';
import os from 'os';
import escapeRegexp from 'escape-string-regexp';

@@ -63,2 +64,4 @@

throw new Error('Invalid router prefix ' + prefix);
} else if(os.platform().startsWith("win")) {
prefix.replace(/\\/g,"/");
}

@@ -65,0 +68,0 @@ debug('Router: create a new Router to load with prefix ' + prefix);

2

package.json
{
"name": "lark-router",
"version": "1.0.0",
"version": "1.0.1",
"description": "An koa route initialization and configuration module.",

@@ -5,0 +5,0 @@ "main": ".easy",

@@ -13,7 +13,7 @@ lark-router

```
$ npm install lark-router
$ npm install lark-router@~1.0.0
```
## API
### `app.use(new Router().load('controllers').routes())`
`app.use(new Router().load('controllers').routes())`

@@ -28,3 +28,3 @@ Exmaple:

const app = new Kao();
const app = new Koa();

@@ -31,0 +31,0 @@ app.use(router.routes());

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