tuft
TypeScript icon, indicating that this package has built-in type declarations

2.5.1 • Public • Published

Tuft

A fast, lightweight web framework for Node.js, with no dependencies.

CI Coverage Status Known Vulnerabilities npm

Official website: https://tuft.dev

Getting started

You can install Tuft via npm:

npm install tuft

A simple "Hello, world!" example:

const { tuft } = require('tuft')
 
tuft()
  .set('GET /', { text: 'Hello, world!' })
  .createServer({ port: 3000 })
  .start()
  .then(({ host, port }) => {
    console.log(`Server listening at http://${host}:${port}`)
  })

For more information on how to use Tuft, see the official documentation.

People

The creator and maintainer of Tuft is Stuart Kennedy.

License

MIT

Package Sidebar

Install

npm i tuft

Homepage

tuft.dev

Weekly Downloads

14

Version

2.5.1

License

MIT

Unpacked Size

75.2 kB

Total Files

30

Last publish

Collaborators

  • rav2040