Getting started

Installing dependencies

Before continuing make sure you have NodeJSopen in new window v16.6 or higher installed on your machine. You can verify your installation with node -v in your terminal.

npm install hyttpo@latest
yarn add hyttpo@latest
pnpm add hyttpo@latest

Basic setup

Let's start by importing hyttpo into our project.

const hyttpo = require('hyttpo').default;
1
import { hyttpo } from 'hyttpo';
1
import hyttpo from 'hyttpo';
1
<script src='https://unpkg.com/browse/hyttpo@latest'></script>
1
// For frameworks like ReactJS, NextJS (JS)
import { hyttpo } from 'hyttpo';

// For frameworks like ReactJS, NextJS (TS)
import hyttpo from 'hyttpo';
1
2
3
4
5

That's it! Try running node index.js in your terminal!