@squzy/express
TypeScript icon, indicating that this package has built-in type declarations

1.10.0 • Public • Published

@squzy/express

Package for usage that inside express application

How to use

npm install @squzy/express --save

It is should be on route level, because on root level it is impossible to get access to matched router without patching(we dont wanna do that)

import { createMiddleware } from "@squzy/express"
import { createApplication } from "@squzy/core"

const application = await createApplication({
    apiHost: "http://localhost:8080",
    name: "nodejs"
})

const router = express.Router();

router.get('/adamin/:name', createMiddleware(application), function (req, res) {
    //console.log(req.route)
    res.send('hello world')
})

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.10.02latest

Version History

VersionDownloads (Last 7 Days)Published
1.10.02
1.9.00
1.8.00
0.1.21-alpha.00
0.1.20-alpha.00
0.1.19-alpha.00
0.1.18-alpha.00
0.1.17-alpha.00
0.1.16-alpha.00
0.1.15-alpha.00
0.1.14-alpha.00
0.1.13-alpha.00
0.1.12-alpha.00
0.1.11-alpha.00
0.1.10-alpha.00
0.1.9-alpha.00
0.1.8-alpha.01
0.1.7-alpha.00
0.1.6-alpha.00
0.1.5-alpha.01
0.1.4-alpha.00
0.1.3-alpha.00
0.1.2-alpha.00
0.1.1-alpha.00
0.1.0-alpha.00
0.0.10-alpha.00
0.0.9-alpha.00
0.0.8-alpha.01
0.0.7-alpha.00
0.0.6-alpha.01
0.0.5-alpha.00

Package Sidebar

Install

npm i @squzy/express

Weekly Downloads

1

Version

1.10.0

License

ISC

Unpacked Size

6.5 kB

Total Files

9

Last publish

Collaborators

  • pxyup