You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

miumiu

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miumiu

Fast API server with Typescript

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Fast API server with NodeJS and Typescirpt

Struct project

--- index.ts
--- controllers
    |------ A.controller.ts

Require

Install typescirpt and setup carefull for decorator You shoud install ts-node-dev for development

Create controller

import { Controller, Get, PathParam, Post } from "miumiu";

@Controller("/hello")
export class AController {

    @Get('/')
    public async get_live(
     
    ){
        return {"OK"};
    }
    
    @Post('/')
    public async get_die(
       @Require()  @BodyParam('abc') cookies : string[]
    ){
        return {cookies};

    }
}

Create server

import { Server } from "miumiu";

new Server({port: 8080}).start();

Start

Intall ts-node-dev for development

ts-node-dev index.ts

FAQs

Package last updated on 25 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts