0.3.3 • Published 2 years ago

@sact/core v0.3.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Stract

⚡️ Fast node server

Install

  npm install @stract/core

or

  yarn add @stract/core

Minimal setup

import { Stract } from '@stract/core';

const app = new Stract();

app.get('/', async () => ({ foo: 'bar' }));

async function start() {
  try {
    await app.ready();
    const { url } = await app.listen(9001);
    console.log(`Server ready on http://${url}`);
  } catch (error) {
    console.error(error);
  }
}

start();
0.3.2

2 years ago

0.3.3

2 years ago

0.3.1

2 years ago

0.3.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago