rest-library v1.2.3 is a small Node.js library for creating REST applications with express-like middleware. It provides a lightweight alternative to Express with a similar middleware pattern, supporting HTTP method routing, path parameters, and patterns. The library ships TypeScript types and includes utilities like a body parser. It requires Node.js >=14.19.2 and is ESM-first. The package appears to be stable with low release cadence. Key differentiators include simplicity and zero dependencies, but it lacks the ecosystem and community support of larger frameworks.
npm install rest-libraryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a basic REST server with middleware and a GET route.
Use import syntax or ensure your project is configured for ESM (e.g., type: module in package.json).
Use middleware like busboy for multipart/form-data or other types.
Test your routes thoroughly; use explicit patterns if needed.
Use import Rest from 'rest-library' instead of require().
Use const app = new Rest();
Import with full path including .js: import { parseBodyMiddleware } from 'rest-library/utils.js'No dependency data recorded yet.