Registry / devops / maf-rest

maf-rest

JSON →
library0.23.0jsnpmunverified

maf-rest is an HTTP REST API handling package for Node.js (requires >=6). The current version is 0.23.0. Release cadence is not specified but it's a work in progress. It is a minimal, lightweight framework for building RESTful APIs with Node.js, offering basic routing and middleware support. Unlike larger frameworks like Express, it focuses on simplicity and low overhead. Not recommended for production use due to instability.

npm install maf-rest
INSTALL
IMPORT
SIG · MAF-REST
M
maf-rest
devopsjavascriptv0.23.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import mafRest from 'maf-rest'
const mafRest = require('maf-rest')
ESM import is preferred, but CJS require also works.

Creates a simple REST API server with a GET endpoint returning JSON.

const mafRest = require('maf-rest'); const app = mafRest(); app.get('/hello', (req, res) => { res.json({ message: 'Hello World' }); }); app.listen(3000, () => console.log('Server running on port 3000'));
Debug
Known issues
deprecatedPackage is marked as work in progress and may be unstable.
fix
Consider using a stable alternative like Express or Fastify.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'maf-rest'
Package not installed or imported incorrectly.
fix
Install with npm install maf-rest and ensure correct import path.
Upgrade
Version history
0.23.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
maf-rest — npm install maf-rest · libregistry