New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fasteejs/edge

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fasteejs/edge

blazing fast web application framework

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

fastee

blazing fast web application framework

Built on web Standards

Fast, Lightweight,runs on any JavaScript runtime

Features

  • fast
  • middlewares
  • already know express Yei!
  • multi-runtime
  • express ecosystem support
  • gracefully shutsdown
  • has built-in goodies

packages

  • Fastee - a blazing fast express alternative,runs on nodejs,bun and deno only.
  • edge - a web application framework can serve a hono alternative,it's fast,runs on bun,deno,and workers.

How to install Fastee

found as fasteejs

npm install fasteejs

How to install Edge

found as @fasteejs/edge

npm install @fasteejs/edge
 npm i fasteejs

Fastee usage

runs on node,bun and deno

  import {Fastee} from "fasteejs"

  const app = new Fastee(); //uses defaults
  const app1 = new Fastee({port:4000,delay:30000}) //pass port and shutdown delay
  let server = http.createServer().listen(5000)
  const app2 = new Fastee({server,delay:30000}) //passed listening server must be already running
  app.get('/', function (req, res) {
     res.send('Hello World')
  })

app.static("static",{dotfiles:false}) //pass valid folder path and optional config

 //shutdown listener
app.onShutdown((signal)=>{
  //call service before shutdown
  console.log("before",signal)
})

  export {app,app1,app2}

edge usage

import Edge from "@fasteejs/edge" //or import {Edge} from "@fasteejs/edge"

const app = new Edge();

console.log(app)
//global wares
app.use((req,res)=>{//no next funtion required
 req.id="ware1"
},(req,res)=>{
  console.log(req.id)
  return res.json({msg:"success"})
})
//bwares route specific wares
app.use("/api",(req,res)=>{//no next funtion required
 req.id="ware1"
},(req,res)=>{
  console.log(req.id)
  return res.json({msg:"success"})
})
/*handler
a handler must return a response 
*/
app.get("/",async (req,res)=>{
  console.log(req)
  //object
  return new Response("hi from server")//or return res.text("hi edge")
})

export default app //must do

Keywords

fasteejs

FAQs

Package last updated on 23 Feb 2025

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