Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinyhttp/app

Package Overview
Dependencies
Maintainers
1
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/app - npm Package Compare versions

Comparing version 0.1.34 to 0.1.35

6

package.json
{
"name": "@tinyhttp/app",
"version": "0.1.34",
"version": "0.1.35",
"description": "tinyhttp core",

@@ -34,4 +34,4 @@ "homepage": "https://github.com/talentlessguy/tinyhttp",

"@foxify/fresh": "^1.1.0",
"@tinyhttp/cookie": "0.0.9",
"@tinyhttp/cookie-signature": "0.0.5",
"@tinyhttp/cookie": "0.0.10",
"@tinyhttp/cookie-signature": "0.0.6",
"@tinyhttp/etag": "0.1.23",

@@ -38,0 +38,0 @@ "accepts": "^1.3.7",

@@ -1,15 +0,26 @@

[![Twitter](https://img.shields.io/twitter/follow/v1rtl.svg?label=sub%20to%20twitter&style=flat-square)](twitter.com/v1rtl) [![npm type definitions](https://img.shields.io/npm/types/@tinyhttp/app?style=flat-square)](npmjs.com/@tinyhttp/app)
# tinyhttp
[![](https://img.shields.io/badge/website-visit-hotpink?style=flat-square)](https://tinyhttp.v1rtl.site) [![Twitter](https://img.shields.io/twitter/follow/v1rtl.svg?label=sub%20to%20twitter&style=flat-square)](twitter.com/v1rtl) [![npm type definitions](https://img.shields.io/npm/types/@tinyhttp/app?style=flat-square)](npmjs.com/@tinyhttp/app)
![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/body-parsec.svg?style=flat-square)
![Last commit](https://img.shields.io/github/last-commit/talentlessguy/tinyhttp.svg?style=flat-square) [![NPM](https://img.shields.io/npm/l/@tinyhttp/app?style=flat-square)](npmjs.com/@tinyhttp/app)
# tinyhttp
> ⚠ The project is in development. Please don't use in production.
> ⚠ The project is incomplete. Please don't use in production.
_**tinyhttp**_ is a modern Express-like web framework for Node.js. It uses a bare minimum amount of dependencies trying to avoid legacy hell.
**tinyhttp** is a modern Express-like web framework for Node.js. It uses a bare minimum amount of dependencies trying to avoid legacy.
Here is a short list of most important features that tinyhttp has:
## Installation
- ⚙ Full Express middleware support
- ↪ Async middleware support
- 📦 8x smaller than Express
- 🏃 No legacy dependencies
- 🔨 Types out of the box
- ☑ Native ESM and CommonJS support
Node.js 12.4.0 or newer (according to https://node.green/#ES2019) is required.
To get started, visit [tinyhttp website](https://tinyhttp.v1rtl.site).
## Install
[Node.js 12.4.0 or newer](https://node.green/#ES2019) is required.
```sh

@@ -24,20 +35,10 @@ # npm

## Features
- Compatible with Express
- Async routes [not tested yet]
- Smaller size
- 0 legacy dependencies
## Docs
Coming soon...
You can see the documentation [here](https://tinyhttp.v1rtl.site/docs).
## Example
At the moment there is only one basic example. I will add more of them once I add all the existing Express `req` / `res` extensions.
```ts
import { App } from '@tinyhttp/app'
import staticFolder from '@tinyhttp/static'
import logger from '@tinyhttp/logger'

@@ -48,2 +49,6 @@

app
.use(function someMiddleware(req, res, next) {
console.log('Did a request')
next()
})
.get('/', (_, res) => {

@@ -56,4 +61,11 @@ res.send('<h1>Hello World</h1>')

.use(logger())
.use(staticFolder())
.listen(3000)
```
For more examples check [examples](https://github.com/talentlessguy/tinyhttp/blob/master/examples) folder.
## Middlewares
tinyhttp offers a list of premade middleware for common tasks.
Search and explore the full list at [middleware search page](https://tinyhttp.v1rtl.site/mw).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc