@amaui/models
TypeScript icon, indicating that this package has built-in type declarations

1.1.19 • Public • Published

amaui logo

amaui Models

Models


MIT license     Production ready     UMD 4.2kb gzipped     100% test cov     Browser and Nodejs

Very simple code     Modern code     Junior friendly     Typescript     Made with 💛


Getting started

Add

  yarn add @amaui/models 

Use

  import express from 'express';
  import { Query, Response } from '@amaui/models';

  async function route(req: express.Request, res: express.Response) {
    const query = Query.fromRequest(req);

    const response = await todoCollection.searchMany(query);

    return res.status(200).json(Response.fromQuery(response));
  }

  // etc.

Dev

Install

  yarn

Test

  yarn test

Prod

Build

  yarn build

Package Sidebar

Install

npm i @amaui/models

Weekly Downloads

62

Version

1.1.19

License

MIT

Unpacked Size

125 kB

Total Files

47

Last publish

Collaborators

  • lazareric