Package Exports
- @routup/query
- @routup/query/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@routup/query) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@routup/query
This is a plugin for reading and parsing the query string of the request url.
Table of Contents
Installation
npm install @routup/query --save
Documentation
To read the docs, visit https://routup.tada5hi.net
Usage
import { Router, send } from 'routup';
import {
useRequestQuery
} from '@routup/query';
const router = new Router();
router.get('/', (req, res) => {
const query = useRequestQuery(req);
console.log(query);
// { key: value, ... }
send(res, 'Hello World');
});
router.listen(3000);
License
Made with 💚
Published under MIT License.