# micro-access **Repository Path**: mirrors_floatdrop/micro-access ## Basic Information - **Project Name**: micro-access - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # micro-access [![Build Status](https://travis-ci.org/kevva/micro-access.svg?branch=master)](https://travis-ci.org/kevva/micro-access) > Easy CORS handling for [`micro`](https://github.com/zeit/micro) ## Install ``` $ npm install micro-access ``` ## Usage ```js const {json, send} = require('micro'); const microAccess = require('micro-access'); module.exports = microAccess()(async (req, res) => { const body = await json(req); send(res, 200, body); }); ``` ## API ### microAccess([options])(handler) #### options Type: `Object` Same as [`control-access`](https://github.com/kevva/control-access#options). #### handler Type: `Function` The request handler to wrap. ## Related * [control-access](https://github.com/kevva/control-access) - Easy CORS handling ## License MIT © [Kevin Mårtensson](https://github.com/kevva)